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); $countri
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;
}
本文标题为:Array of country list in PHP with Zend Framework
基础教程推荐
- php实现数组筛选奇数和偶数示例 2024-02-05
- php实现构建排除当前元素的乘积数组方法 2022-11-23
- PHP实现抽奖系统的示例代码 2023-06-26
- php数组函数序列之array_sum() – 计算数组元素值之和 2024-01-15
- 设定php简写功能的方法 2023-03-17
- PHP手机短信验证码实现流程详解 2022-10-18
- PHP+MySQL+sphinx+scws实现全文检索功能详解 2023-01-31
- PHP实现文件下载【实例分享】 2024-04-27
- PHP判断一个字符串是否是回文字符串的方法 2024-01-31
- Yii框架连表查询操作示例 2023-02-13
