html select option foreach post code example
Example: php html select option array
foreach($countries as $cc => $name) {
echo '<option value="' . $cc . '">' . $name . '</option>';
}
//exemple2
$countries = get_list_countries();
foreach($countries as $c) {
echo '<option value="' . $c['id'] . '">' . $c['country_name'] . '</option>';
}