时时商务社区
标题:
Array of country list in PHP with Zend Framework
[打印本页]
作者:
新格网络
时间:
2018-2-14 08:32
[U]复制代码[/U] 代码如下:
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;
}
欢迎光临 时时商务社区 (http://bbs.4435.cn/)
Powered by Discuz! X3.2