I output a PHP object via a loop but withing this look I have a few nested arrays.
[categories] => Array
(
[0] => Array
(
[0] => Chinese
[1] => chinese
)
[1] => Array
(
[0] => Vietnamese
[1] => vietnamese
)
)
[phone] => 5123355555
I can get the phone like this:
$response->businesses[$x]->phone
How do I get categories (first value) into a string like this:
Chinese, Vietnamese