Array of country list in PHP with Zend Framework

  作者:bea

代码如下: 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($countr

代码如下:


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;
}




有用  |  无用

猜你喜欢