I have a dropdown menu with a PHP \'foreach\' that I loop through to populate the select options. This works well. However, what I\'d like to do is have various sub labels u
This method does not require sorting the array
$group= array_values(array_unique(array_column($album, 'type'))); for ($i=0; $i < count($group); $i++) : ?> =$value['type'];?>