首页  >  文章  >  后端开发  >  Array of country list in PHP with Zend Framework_PHP教程

Array of country list in PHP with Zend Framework_PHP教程

WBOY
WBOY原创
2016-07-21 15:24:21811浏览

复制代码 代码如下:

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

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/324339.htmlTechArticle复制代码 代码如下: public static function countryList($local) { $locale = new Zend_Locale('en_US'); $countries = ($locale-getTranslationList('Territory', $local, 2)); asort...
声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn