<?php foreach($location_categories as $location_id => $location_name): ?> <option><?= $location_name; ?></option> <?php endforeach; ?>