Skip to main navigation
#! code
Code Tips, Snippets, Resources, Tutorials And Help
  • Home
  • Tools
  • About
  • Contact

PHP Array Of Australian States

By philipnorton42 on 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. );

 

Category
PHP Arrays
Tags
PHP

Comments

Permalink

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

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

Permalink

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

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.
About text formats
CAPTCHA This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
  • Add new comment

Categories

  • Ansible
  • Apache
  • Book Reviews
  • CSS
  • DOS/Windows
  • Drupal
    • Drupal 8
    • SimpleTest
  • Flex/Flash
  • General
  • Git
  • HTML/XHTML
  • JavaScript
    • JavaScript Strings
    • JavaScript Websites
    • JQuery
    • MooTools
    • OpenLayers
    • Script.aculo.us
  • Linux/Unix
  • MS SQL
  • OSX
  • PhoneGap
  • PHP
    • Phing
    • PHP Arrays
    • PHP Questions
    • PHP Strings
    • PHP Websites
    • Zend Framework
  • PostgreSQL
  • Python
  • Regular Expressions
  • Regular Expressions Websites
  • SQL
    • MS SQL
    • MySQL
    • PostgreSQL
  • Vagrant
  • Websites
  • WordPress

User login

  • Reset your password

© 2019 #! code

  • Twitter
  • Facebook
  • Google+
  • Github
  • RSS
  • Colophon
  • Privacy Policy
  • Terms and License