Rumah > Artikel > pembangunan bahagian belakang > zend framework 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;
}
以上就介绍了zend framework Array of country list in PHP with Zend Framework,包括了zend framework方面的内容,希望对PHP教程有兴趣的朋友有所帮助。