PHP Масив канадських провінцій
Сніппет
Англійська версія:
$statesOfCA = [
'AB' => "Alberta",
'BC' => "British Columbia",
'MB' => "Manitoba",
'NB' => "New Brunswick",
'NL' => "Newfoundland",
'NT' => "Northwest Territories",
'NS' => "Nova Scotia",
'NU' => "Nunavut",
'ON' => "Ontario",
'PE' => "Prince Edward Island",
'QC' => "Quebec",
'SK' => "Saskatchewan",
'YT' => "Yukon",
];
Або:
$statesOfCA = [
['code'=>'AB','name' => "Alberta"],
['code'=>'BC','name' => "British Columbia"],
['code'=>'MB','name' => "Manitoba"],
['code'=>'NB','name' => "New Brunswick"],
['code'=>'NL','name' => "Newfoundland"],
['code'=>'NT','name' => "Northwest Territories"],
['code'=>'NS','name' => "Nova Scotia"],
['code'=>'NU','name' => "Nunavut"],
['code'=>'ON','name' => "Ontario"],
['code'=>'PE','name' => "Prince Edward Island"],
['code'=>'QC','name' => "Quebec"],
['code'=>'SK','name' => "Saskatchewan"],
['code'=>'YT','name' => "Yukon"],
];
Французька версія:
$statesOfCA = [
'AB' => "Alberta",
'BC' => "Colombie Britannique",
'MB' => "Manitoba",
'NB' => "Nouveau-Brunswick",
'NL' => "Terre-Neuve-et-Labrador",
'NT' => "Territoires du Nord-Ouest",
'NS' => "Nouvelle-Écosse",
'NU' => "Nunavut",
'ON' => "Ontario",
'PE' => "Île du Prince-Édouard",
'QC' => "Quebec",
'SK' => "Saskatchewan",
'YT' => "Territoire du Yukon",
];
Або:
$statesOfCA = [
['code'=>'AB','name' => "Alberta"],
['code'=>'BC','name' => "Colombie Britannique"],
['code'=>'MB','name' => "Manitoba"],
['code'=>'NB','name' => "Nouveau-Brunswick"],
['code'=>'NL','name' => "Terre-Neuve-et-Labrador"],
['code'=>'NT','name' => "Territoires du Nord-Ouest"],
['code'=>'NS','name' => "Nouvelle-Écosse"],
['code'=>'NU','name' => "Nunavut"],
['code'=>'ON','name' => "Ontario"],
['code'=>'PE','name' => "Île du Prince-Édouard"],
['code'=>'QC','name' => "Quebec"],
['code'=>'SK','name' => "Saskatchewan"],
['code'=>'YT','name' => "Territoire du Yukon"],
];
Абревіатури Канадських штатів у вигляді PHP масиву:
$statesOfCA = ['AB','BC','MB','NB','NL','NT','NS','NU','ON','PE','QC','SK','YT'];