Skip to content

Instantly share code, notes, and snippets.

@fpilee
Created February 23, 2024 17:40
Show Gist options
  • Save fpilee/6578f2f6580ca3482de57eb72c4a408b to your computer and use it in GitHub Desktop.
Save fpilee/6578f2f6580ca3482de57eb72c4a408b to your computer and use it in GitHub Desktop.
Canada province list json
$arr = array (
'AB' => 'Alberta',
'BC' => 'British Columbia',
'MB' => 'Manitoba',
'NB' => 'New Brunswick',
'NL' => 'Newfoundland and Labrador',
'NT' => 'Northwest Territories',
'NS' => 'Nova Scotia',
'NU' => 'Nunavut',
'ON' => 'Ontario',
'PE' => 'Prince Edward Island',
'QC' => 'Quebec',
'SK' => 'Saskatchewan',
'YT' => 'Yukon',
);
let list = {
"AB": "Alberta",
"BC": "British Columbia",
"MB": "Manitoba",
"NB": "New Brunswick",
"NL": "Newfoundland and Labrador",
"NT": "Northwest Territories",
"NS": "Nova Scotia",
"NU": "Nunavut",
"ON": "Ontario",
"PE": "Prince Edward Island",
"QC": "Quebec",
"SK": "Saskatchewan",
"YT": "Yukon"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment