Beginner question. Initial php array is multidimensional with arrays inside. Take a look.
Array
(
[0] => Array
(
[textkey] => text
[file] => file.txt
)
[1] => Array
(
[anotherkey] => another text
[file] => file2.xml
)
[2] => Array
(
[text_success] => Success
[newfile] => scope.txt
))
How to rebuild it with foreach or other way? Is any function to rebuild array to?
Array
(
[textkey] => text
[file] => file.txt
[anotherkey] => another text
[file] => file2.xml
[text_success] => Success
[newfile] => scope.txt
)