I have this array:
[@attributes] => Array
(
[url] =>
[navigation] => true
[template] => home
)
[@children] => Array
(
[0] => Array
(
[name] => Home
)
[1] => Array
(
[desc] => Lorem ipsum dolor
)
[2] => Array
(
[@children] => Array......
I need it to instead be this:
[@attributes] => Array
(
[url] =>
[navigation] => true
[template] => home
)
[@children] => Array
(
[name] => Home
[desc] => Lorem ipsum dolor
[@children] => Array......
I can't change the way this array is actually being built unfortunately so I need to basically get rid of each item being in their own array, they should all be nested under children.
Thanks in advance