PHP Array Of Australian States

23rd April 2009

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

  1. $australian_states = array(
  2. "NSW" => "New South Wales",
  3. "VIC" => "Victoria",
  4. "QLD" => "Queensland",
  5. "TAS" => "Tasmania",
  6. "SA" => "South Australia",
  7. "WA" => "Western Australia",
  8. "NT" => "Northern Territory",
  9. "ACT" => "Australian Capital Territory"
  10. );

 

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! :(

philipnorton42 (Tue, 08/28/2018 - 08:46)

Add new comment

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