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;
}
相关文章
How do I change MySQL timezone?
The MySQL timezone is set to MST (-7 hours GMT/UTC) and is not configurable by you. MySQL is only capable of having 1 timezone setting per mysql daemon. Therefore, you cannot select NOW() and expect a result in a timezone other than MST.2008-03-03PHP curl CURLOPT_RETURNTRANSFER参数的作用使用实例
这篇文章主要介绍了PHP curl CURLOPT_RETURNTRANSFER参数的作用使用实例,CURLOPT_RETURNTRANSFER参数的作用是把CRUL获取的内容赋值到变量,需要的朋友可以参考下2015-02-02php+jquery编码方面的一些心得(utf-8 gb2312)
在开发php与jquery的过程中,需要注意的一些心得,防止乱码的出现。2010-10-10PHP preg_match实现正则表达式匹配功能【输出是否匹配及匹配值】
这篇文章主要介绍了PHP preg_match实现正则表达式匹配功能,较为详细的介绍了preg_match函数的功能、参数含义、返回值及使用方法,并结合实例给出了preg_match输出是否匹配及匹配值的相关实现技巧,需要的朋友可以参考下2017-07-07
最新评论