Array of country list in PHP with Zend Framework

Array of country list in PHP with Zend Framework,需要的朋友可以参考下。

复制代码 代码如下:


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://www.heiqu.com/c1488df597964357417bd59c65ed5cb5.html