mirror of
https://github.com/Respect/Validation.git
synced 2024-06-28 18:20:07 +02:00
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.
41 lines
974 B
PHP
41 lines
974 B
PHP
<?php
|
|
return [
|
|
"country" => "Sri Lanka",
|
|
"subdivisions" => [
|
|
"1" => "Western Province",
|
|
"11" => "Colombo",
|
|
"12" => "Gampaha",
|
|
"13" => "Kalutara",
|
|
"2" => "Central Province",
|
|
"21" => "Kandy",
|
|
"22" => "Matale",
|
|
"23" => "Nuwara Eliya",
|
|
"3" => "Southern Province",
|
|
"31" => "Galle",
|
|
"32" => "Matara",
|
|
"33" => "Hambantota",
|
|
"4" => "Northern Province",
|
|
"41" => "Jaffna",
|
|
"42" => "Kilinochchi",
|
|
"43" => "Mannar",
|
|
"44" => "Vavuniya",
|
|
"45" => "Mullaittivu",
|
|
"5" => "Eastern Province",
|
|
"51" => "Batticaloa",
|
|
"52" => "Ampara",
|
|
"53" => "Trincomalee",
|
|
"6" => "North Western Province",
|
|
"61" => "Kurunegala",
|
|
"62" => "Puttalam",
|
|
"7" => "North Central Province",
|
|
"71" => "Anuradhapura",
|
|
"72" => "Polonnaruwa",
|
|
"8" => "Uva Province",
|
|
"81" => "Badulla",
|
|
"82" => "Monaragala",
|
|
"9" => "Sabaragamuwa Province",
|
|
"91" => "Ratnapura",
|
|
"92" => "Kegalla"
|
|
]
|
|
];
|