I have a strange array format after converting from a SimpleXMLElement. I have an array like this:
Array
(
[test] => Array
(
[0] => Array
(
[a] => Array
(
[0] => 1
)
[b] => Array
(
[0] => 2
)
[c] => Array
(
[0] => 3
)
And i want to transform it into this:
Array
(
[test] => Array
(
[0] => Array
(
[a] => 1
[b] => 2
[c] => 3
Any ideas?
pushelements onto the new array as appropriate. What's stopping you?