PHP HTML Wybierz tablicę opcji
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>';
}
Mohamed Sami khiari