How can I order these 2 foreach loops alphabetically – PHP
I have a foreach loop within a foreach loop the first foreach loop grabs the department the second foreach loop grabs the names within that department <div class="selection"> <?php foreach ($departments as $department) { $code = $department['department_code']; $names = $department['department_names'];…