Welcome 微信登录
编程资源 图片资源库 蚂蚁家优选 PDF转换器 软件资源

软件开发小程序制作系统集成与运维空间租用硬件开发视频监控技术咨询与支持——联系电话:0311-88999002/88999003

首页 / 网页编程 / 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;
}