mirror of
https://github.com/Respect/Validation.git
synced 2024-06-02 05:42:16 +02:00
6173757f63
Previously, we were loading country info from a JSON file. This changes it to use PHP files instead. It also caches these resources across calls avoiding these files to be loaded more than once per process.
38 lines
797 B
PHP
38 lines
797 B
PHP
<?php
|
|
return [
|
|
"country" => "Malawi",
|
|
"subdivisions" => [
|
|
"BA" => "Balaka",
|
|
"BL" => "Blantyre",
|
|
"C" => "Central Region",
|
|
"CK" => "Chikwawa",
|
|
"CR" => "Chiradzulu",
|
|
"CT" => "Chitipa",
|
|
"DE" => "Dedza",
|
|
"DO" => "Dowa",
|
|
"KR" => "Karonga",
|
|
"KS" => "Kasungu",
|
|
"LI" => "Lilongwe",
|
|
"LK" => "Likoma",
|
|
"MC" => "Mchinji",
|
|
"MG" => "Mangochi",
|
|
"MH" => "Machinga",
|
|
"MU" => "Mulanje",
|
|
"MW" => "Mwanza",
|
|
"MZ" => "Mzimba",
|
|
"N" => "Northern Region",
|
|
"NB" => "Nkhata Bay",
|
|
"NE" => "Neno",
|
|
"NI" => "Ntchisi",
|
|
"NK" => "Nkhotakota",
|
|
"NS" => "Nsanje",
|
|
"NU" => "Ntcheu",
|
|
"PH" => "Phalombe",
|
|
"RU" => "Rumphi",
|
|
"S" => "Southern Region",
|
|
"SA" => "Salima",
|
|
"TH" => "Thyolo",
|
|
"ZO" => "Zomba"
|
|
]
|
|
];
|