Array of country list in PHP with Zend Framework

Array of country list in PHP with Zend Framework

php编程 2023-06-09 08:10:02 1年以前

代码如下:

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; }

文章版权声明:除非注明,否则均为网络转载文章,转载或复制请以超链接形式并注明出处。