My question is rather straight forward, yet I am very unsure on how to do it in an effective way.
Say we have an array like this:
array (
[0] => array(
[0] => "a"
)
[1] => array(
[0] => "b"
[1] => "c"
)
["a"] => array(
["b"] => "d"
)
)
It does not matter to me wether or not keys are preserved, what I ultimately want to end up with is this (with or without key preservation, doesnt matter too much):
Expected output:
array (
[0] => "a"
[1] => array(
[0] => "b"
[1] => "c"
)
["a"] => "d"
)
I hope you can help!
~ Troels