当前位置:主页 > 软件编程 > PHP代码 >

Array of country list in PHP with Zend Framework

时间:2021-07-10 09:33:42 | 栏目:PHP代码 | 点击:

复制代码 代码如下:

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

您可能感兴趣的文章:

相关文章