PHP Array of Australian States
Snippet
Australian states abbreviations and names as PHP array:
$states = [
"NSW" => "New South Wales",
"VIC" => "Victoria",
"QLD" => "Queensland",
"TAS" => "Tasmania",
"SA" => "South Australia",
"WA" => "Western Australia",
"NT" => "Northern Territory",
"ACT" => "Australian Capital Territory"
];
Or:
$states = [
['code' => 'NSW', 'name' => 'New South Wales'],
['code' => 'QLD', 'name' => 'Queensland'],
['code' => 'SA', 'name' => 'South Australia'],
['code' => 'TAS', 'name' => 'Tasmania'],
['code' => 'VIC', 'name' => 'Victoria'],
['code' => 'WA', 'name' => 'Western Australia'],
['code' => 'NT', 'name' => 'Northern Territory'],
['code' => 'ACT', 'name' => 'Australian Capital Territory']
];
AU State codes as PHP array:
$auStateCodes = ['NSW', 'QLD', 'SA', 'TAS', 'VIC', 'WA', 'NT', 'ACT'];
AU State names as PHP array:
$states = [
"New South Wales",
"Victoria",
"Queensland",
"Tasmania",
"South Australia",
"Western Australia",
"Northern Territory",
"Australian Capital Territory"
];