I want to use php array for HTML select list. In this case it will be the list of countries but beside of country name that is listed in drop down list I need as a value of
If you are using this sort of array as shown by jakenoble I would use foreach().
$wcr=array(
"ANG" = > 'Angola',
"ANB" = > 'Antigua & Barbuda',
"ARM" = > 'Armenia',
"AUS" = > 'Austria',
"AZB" = > 'Azerbaijan'
);
So the Foreach would look something like:
foreach($wcr as $short_code => $descriptive) {
?>