Hey there---
I'm looking for help on how to do this...
I have the following array:
Array (
[0] => Array (
[ID] =>123
[Car] => Honda
[Make] => Accord
[Color] => White
)
[1] => Array (
[ID] =>654
[Car] => Toyota
[Make] => Camry
[Color] => Black
)
[2] => Array (
[ID] =>789
[Car] => Nissan
[Make] => Altima
[Color] => Red
)
)
All in this variable:
$data['get_cars'] = $car_query->result_array();
Then I do a foreach with the IDs to grab the years...
Year of Honda with ID 123 is 2008
Year of Toyota with ID 654 is 2010
Year of Nissan with ID 789 is 2014
Now i have an array like this:
Array (
[0] => Array (
[Year] =>2010
)
[0] => Array (
[Year] =>2012
)
[0] => Array (
[Year] =>2015
)
)
How do I do this so I can add this to my original multidimensional array?