If you need to smooth this array to one-dimensional - take a look at this function (from Kohana fw)
function flatten($array) { $flat = array(); foreach ($array as $key => $value) { if (is_array($value)) { $flat += flatten($value); } else { $flat[$key] = $value; } } return $flat; }
but if you just want to get a string - use the native implode()
function
source share