foreach ( $array as $k=>$v )
{
$array[$k] ['id'] = $array[$k] ['fee_id'];
unset($array[$k]['fee_id']);
}
This should work
More Related Contents:
- Sign in form always showing "Wrong Credentials"
- How to order array items by date format YYYY MM DD in PHP? [closed]
- How to Sort a Multi-dimensional Array by Value
- How to get a form input array into a PHP array
- How to remove duplicate values from an array in PHP
- Insert new item in array on any position in PHP
- How do I create a comma-separated list from an array in PHP?
- Array to String PHP?
- PHP array delete by value (not key)
- How to filter a two dimensional array by value
- How to fix Trying to access array offset on value of type null error
- How do you remove an array element in a foreach loop?
- How to insert an item at the beginning of an array in PHP?
- How to sort a date array in PHP
- PHP hierarchical array – Parents and childs
- PHP Sort array by field? [duplicate]
- Get the keys for duplicate values in an array
- How can you make a multidimensional array unique? [duplicate]
- Efficiently pick n random elements from PHP array (without shuffle)
- How to sort an array of arrays in php?
- PHP get index of last inserted item in array
- Create an assoc array with equal keys and values from a regular array
- php array find duplicates, sum them up & delete duplicates
- Search and replace multiple values with multiple/different values in PHP5?
- PHP Recursively unset array keys if match
- $_POST max array size
- PHP: Get the key from an array in a foreach loop [duplicate]
- Remove item from array if it exists in a ‘disallowed words’ array
- Access first level keys with array_map() without calling `array_keys()`
- How to convert array values to lowercase in PHP?