I have a multidimensional array where the data is as follows:
Array
(
[0] => Array
(
[0] => Array
(
[0] => Brasil
[1] => Franca
[2] => Italia
[3] => China
)
)
)
I would like a method / function that would simplify the array to only one level, regardless of the number of levels, so that the data looks like this:
Array
(
[0] => Brasil
[1] => Franca
[2] => Italia
[3] => China
)