Array Array of country list in PHP with Zend Framework
人气:0想了解Array of country list in PHP with Zend Framework的相关内容吗,在本文为您仔细讲解Array的相关知识和一些Code实例,欢迎阅读和指正,我们先划重点:Array,下面大家一起来学习吧。
复制代码 代码如下:
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;
}
加载全部内容