How to flatten a 2d array by converting each row into a formatted string
I’ve got an array which looks like this:
Array
(
[0] => Array
(
[0] => Thomas
[1] => Jansen
)
[1] => Array
(
[0] => Lisa
[1] => Meier
)
[2] => Array
(
[0] => Gerda
[1] => Ohm
)
)
What I would like to achieve is an array like this:
Array
(
[0] => "Jansen, Thomas"
[1] => "Meier, Lisa"
[2] => "Ohm, Gerda"
)