3
I have a multidimensional array where the data lies as follows:
Array
(
[0] => Array
(
[0] => Array
(
[0] => Brasil
[1] => Franca
[2] => Italia
[3] => China
)
)
)
I would like a method/function that simplifies the array to only one level, independent of the number of levels, so that the data stays like this:
Array
(
[0] => Brasil
[1] => Franca
[2] => Italia
[3] => China
)
If your array in this format always uses this https://ideone.com/WLw7ma
– Marcos Xavier