服务器之家:专注于服务器技术及软件下载分享
分类导航

PHP教程|ASP.NET教程|Java教程|ASP教程|编程技术|正则表达式|C/C++|IOS|C#|Swift|Android|VB|R语言|JavaScript|易语言|vb.net|

服务器之家 - 编程语言 - PHP教程 - Array of country list in PHP with Zend Framework

Array of country list in PHP with Zend Framework

2019-12-14 13:35PHP教程网 PHP教程

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; 

延伸 · 阅读

精彩推荐