I need assistance in creating a new array from the following array:
Array (
[Diesel] => Diesel
[691.400000572205] => 691.400000572205
[Off-Road Diesel] => Off-Road Diesel
[1104.20000505447] => 1104.20000505447 )
I need to new array to look like this:
Array (
[Diesel] => 691.400000572205
[Off-Road Diesel] => 1104.20000505447 )
What's the best way to go about this? This is how I will be receiving the object (using CakePHP, so I can't alter the structure of how I get it).
Thanks!
Array (
[Diesel] => Diesel
[691.400000572205] => 691.400000572205
[Off-Road Diesel] => Off-Road Diesel
[1104.20000505447] => 1104.20000505447 )
I need to new array to look like this:
Array (
[Diesel] => 691.400000572205
[Off-Road Diesel] => 1104.20000505447 )
What's the best way to go about this? This is how I will be receiving the object (using CakePHP, so I can't alter the structure of how I get it).
Thanks!