Array of country list in PHP with Zend Framework
程序员文章站
2022-04-28 15:38:40
复制代码 代码如下: public static function countrylist($local) { $locale = new zend_locale('en_...
复制代码 代码如下:
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;
}
上一篇: 关于DrawerLayout的小问题
下一篇: 我的LeetCode刷题初体验
推荐阅读
-
工厂模式在Zend Framework中应用介绍_PHP
-
Zend Framework教程之路由功能Zend_Controller_Router详解,uiroutercontroller_PHP教程
-
Zend Framework教程之Zend_Layout布局助手详解,zendzend_layout_PHP教程
-
Zend Framework+smarty用法实例详解,zendsmarty_PHP教程
-
Zend Framework框架Smarty扩展实现方法,zendsmarty_PHP教程
-
zend-framework - php如何序列化/存储闭包(Closure)
-
Zend Framework动作助手Json用法实例分析,zendjson_PHP教程
-
Zend Framework实现留言本分页功能(附demo源码下载)_PHP
-
Zend Framework动作助手FlashMessenger用法详解,zendflashmessenger_PHP教程
-
PHP Zend Framework解决方法