Array of country list in PHP with Zend Framework_php技巧
程序员文章站
2022-05-20 14:26:43
...
复制代码 代码如下:
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;
}
推荐阅读
-
Array of country list in PHP with Zend Framework
-
zend framework Array of country list in PHP with Zend Framework
-
Array of country list in PHP with Zend Framework
-
Array of country list in PHP with Zend Framework_php技巧
-
Array of country list in PHP with Zend Framework_PHP教程
-
Array of country list in PHP with Zend Framework_php技巧
-
Array of country list in PHP with Zend Framework
-
zend framework Array of country list in PHP with Zend Framework