Array of country list in PHP with Zend Framework
程序员文章站
2022-10-05 21:14:00
复制代码 代码如下: 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;
}
上一篇: python网络-多线程(22)
下一篇: 供参考的 php 学习提高路线分享
推荐阅读
-
Zend Framework动作助手Json用法实例分析,zendjson_PHP教程
-
Zend Framework实现留言本分页功能(附demo源码下载)_PHP
-
Zend Framework动作助手FlashMessenger用法详解,zendflashmessenger_PHP教程
-
PHP Zend Framework解决方法
-
Zend Framework教程之Loader以及PluginLoader用法详解_PHP
-
Zend Framework自定义Helper类相关注意事项总结_PHP
-
韩顺平 PHP视频教程 zend framework 第1讲 ——第4讲 札记心得
-
Zend Framework教程之MVC框架的Controller用法分析,zendmvc_PHP教程
-
Zend Framework实现具有基本功能的留言本(附demo源码下载)_PHP
-
Zend Framework中的简单工厂模式 图文_PHP