Converting multi level array into single level array

[embed=425,349]
Array (
[0] => Array ( [foo] => bar )
[1] => Array ( [foo] => bar )
[2] => Array ( [foo] => bar )
[3] => Array ( [foo] => bar )
)
[/embed]

How can I convert this array into

[embed=425,349]
Array(
[foo] => bar
[foo] => bar
[foo] => bar
[foo] => bar
)
[/embed]

Thanks

If you did it that way all your indexes would be the same (foo) and it wouldn’t make much sense in my opinion.

Sponsor our Newsletter | Privacy Policy | Terms of Service