首页 > 开发 > PHP > 正文

Array of country list in PHP with Zend Framework

2024-05-04 23:16:53
字体:
来源:转载
供稿:网友

复制代码 代码如下:


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

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表