您的位置:首页 > 编程语言 > PHP开发

Array of country list in PHP with Zend Framework

2011-10-17 00:00 706 查看
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; 
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐