Home > PHP Arrays > PHP Array Of Canadian States

PHP Array Of Canadian States

Use the following array to print out a list of Canadian states, also know as provinces.

$canadian_states = array( 
    "BC"=>"British Columbia", 
    "ON"=>"Ontario", 
    "NL"=>"Newfoundland and Labrador", 
    "NS"=>"Nova Scotia", 
    "PE"=>"Prince Edward Island", 
    "NB"=>"New Brunswick", 
    "QC"=>"Quebec", 
    "MB"=>"Manitoba", 
    "SK"=>"Saskatchewan", 
    "AB"=>"Alberta", 
    "NT"=>"Northwest Territories", 
    "NU"=>"Nunavut"
    "YT"=>"Yukon Territory");

Here is the same array, but with the French versions of the states.

$canadian_states = array( 
    "AB"=>"Alberta"
    "BC"=>"Colombie-Britannique"
    "MB"=>"Manitoba"
    "NB"=>"Nouveau-Brunswick"
    "NL"=>"Terre-Neuve-et-Labrador"
    "NS"=>"Nouvelle-Écosse"
    "NT"=>"Territoires du Nord-Ouest"
    "NU"=>"Nunavut"
    "ON"=>"Ontario"
    "PE"=>"Île-du-Prince-Édouard"
    "QC"=>"Québec"
    "SK"=>"Saskatchewan"
    "YT"=>"Yukon");

Information, services, and products:
If your looking for Limos come to us.
Categories: PHP Arrays Tags: , , ,
  1. Eric
    May 5th, 2009 at 15:21 | #1

    Some corrections for your Canadian provinces and territories array:

    Newfoundland should be “NL” => “Newfoundland and Labrador”

    and you’re missing:

    “NU” => “Nunavut”

    Canadian subnational postal abbreviations

  2. May 5th, 2009 at 15:25 | #2

    Thanks for the info and the link. I have updated the post.

  1. No trackbacks yet.