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;
}
相关文章
PHP类的静态(static)方法和静态(static)变量使用介绍
PHP类的静态(static)方法和静态(static)变量使用介绍,学习php的朋友可以看下2012-02-02
WampServer下安装多个版本的PHP、mysql、apache图文教程
这篇文章主要介绍了WampServer下安装多个版本的PHP、mysql、apache图文教程,需要的朋友可以参考下2015-01-01
PHP5.0~5.6 各版本兼容性cURL文件上传功能实例分析
这篇文章主要介绍了PHP5.0~5.6 各版本兼容性cURL文件上传功能,结合实例形式分析了php各个常见版本进行curl文件上传操作的相关实现技巧与注意事项,需要的朋友可以参考下2018-05-05
PHP通过session id 实现session共享和登录验证的代码
PHP通过session id 实现session共享和登录验证的代码,需要的朋友可以参考下2012-06-06


最新评论