Home>Article>Backend Development> zend framework Array of country list in PHP with Zend Framework
Copy the codeThe code is as follows:
public static function countryList($local)
{
$locale = new Zend_Locale('en_US');
$countries = ($locale->getTranslationList('Territory' , $local, 2));
asort($countries, SORT_LOCALE_STRING);
$countries = array_combine($countries, $countries);
return $countries;
}
The above introduces the zend framework Array of country list in PHP with Zend Framework, including the content of zend framework. I hope it will be helpful to friends who are interested in PHP tutorials.