PHP数组的加拿大国家
使用以下数组打印出加拿大各州(也称为省)的列表。
$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"
);这是相同的数组,但带有法文的州。
$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"
);