欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

Array of country list in PHP with Zend Framework_PHP教程

程序员文章站 2022-05-17 20:44:24
...
复制代码 代码如下:

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

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/324339.htmlTechArticle复制代码 代码如下: public static function countryList($local) { $locale = new Zend_Locale('en_US'); $countries = ($locale-getTranslationList('Territory', $local, 2)); asort...