当前位置:首页 > PHP教程 > PHP高级教程

Array of country list in PHP with Zend Framework

复制代码 代码如下:

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

【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:)!