Answers for "php html select option array"

PHP
0

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>';
        }
Posted by: Guest on November-15-2020

Browse Popular Code Answers by Language