Array of country list in PHP with Zend Framework

 更新时间:2011年10月17日 14:33:18   作者:  
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;
}

相关文章

最新评论