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;
}
posted @ 2011-10-14 23:18  Lux.Y  阅读(308)  评论(0)    收藏  举报