Australian states to select box

<?php
$australian_states = array(
“NSW”=>”New South Wales”,
“VIC”=>”Victoria”,
“QLD”=>”Queensland”,
“TAS”=>”Tasmania”,
“SA”=>”South Australia”,
“WA”=>”Western Australia”,
“NT”=>”Northern Territory”,
“ACT”=>”Australian Capital Terrirory”
);
?>

<select>
<option value=””> — </option>
<?php foreach($australian_states as $state_code => $state_name) : ?>
<option value=”<?=$state_code?>”><?=$state_name?></option>
<?php endforeach; ?>
</select>

SHARE
Previous articleCountry code to select box
Next articleTruncate text

LEAVE A REPLY

Please enter your comment!
Please enter your name here

*