PHP timezone_identifiers_list() 函數
定義和用法
timezone_identifiers_list() 返回包含所有時區標識符的索引數組。
語法
timezone_identifiers_list(what,country);
參數 | 描述 |
---|---|
what |
可選。規定 DateTimeZone 類常量
|
country | 可選。規定兩個字母的 ISO 3166-1 兼容的國家代碼。 |
技術細節
返回值: | 若成功則返回一個數值數組,失敗則返回 FALSE。 |
---|---|
PHP 版本: | 5.2+ |
更新日志: | PHP 5.3:新增可選的 what 和 country 參數。 |