I have an array
'Somethings' =>
array (
'Something' =>
array (
0 =>
array (
'@att' =>
array (
'Code' => '0',
),
'Fruit' => 'Apple',
),
1 =>
array (
'@att' =>
array (
'Code' => '3',
),
'Fruit' => 'Banana',
),
2 =>
array (
'@att' =>
array (
'Code' => '1',
),
'Fruit' => 'Pear',
)
The list continues. What would be the best way to transform (implode I assume) all "Fruits" as comma separated OR in a new array containing only the name elements?
Fruits are a child of @att codes which is the only problem.
Thanks for the help!
'Fruit'index into a separate list?