Array of country list in PHP with Zend Framework

前端之家收集整理的这篇文章主要介绍了Array of country list in PHP with Zend Framework前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

<div class="codetitle"><a style="CURSOR: pointer" data="36033" class="copybut" id="copybut36033" onclick="doCopy('code36033')"> 代码如下:

<div class="codebody" id="code36033">
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相关文章