PHP Array Of Australian States

23rd April 2009 - 1 minute read time

Use the following array to print out a list of Australian states.

$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 Territory"
);

 

Comments

Permalink

FYI, Australian Capital Territory is spelt incorrectly in your list. (Territory not Terrirory)

Dylan Hamilton… (Tue, 08/28/2018 - 06:07)

Permalink

So it is. Corrected it now.

That mistake was only there for 7 years! :(

Add new comment

The content of this field is kept private and will not be shown publicly.