- array_column: documentation ( source)
- implode: documentation ( source)
<?php
$array = [
[
'name' => 'Apparel',
'href' => 'http://localhost/uooro/index.php?route=profile/category&path=12'
],
[
'name' => 'Business Services',
'href' => 'http://localhost/uooro/index.php?route=profile/category&path=15'
],
[
'name' => 'Chemicals',
'href' => 'http://localhost/uooro/index.php?route=profile/category&path=16'
],
];
echo implode(', ', array_column($array, 'name'));