当前位置:首页 >> 网络编程

Array of country list in PHP with Zend Framework

编辑:jimmy
  日期: 2025/2/5 浏览:1 次
复制代码 代码如下:
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;
}
上一篇: PHP中读写文件实现代码
下一篇: php环境配置之CGI、FastCGI、PHP-CGI、PHP-FPM、Spawn-FCGI比较?