PHP timezone_identifiers_list() Function
PHP Date/Time Reference Manual
Example
Output all time zones in Africa:
Run Example »
Definition and Usage
timezone_identifiers_list() returns a numeric array containing all time zone identifiers.
Syntax
timezone_identifiers_list(
what,country);
| Parameters | Description |
|---|---|
| what | Optional. Specifies a DateTimeZone class constant |
1 = AFRICA
2 = AMERICA
4 = ANTARCTICA
8 = ARCTIC
16 = ASIA
32 = ATLANTIC
64 = AUSTRALIA
128 = EUROPE
256 = INDIAN
512 = PACIFIC
1024 = UTC
2047 = ALL
4095 = ALL_WITH_BC
4096 = PER_COUNTRY |
| country | Optional. Specifies a two-letter ISO 3166-1 compatible country code. |
Technical Details
| Return Value: | Returns a numeric array on success, or FALSE on failure. |
|---|---|
| PHP Version: | 5.2+ |
| Changelog: | PHP 5.3: Added the optional parameters. what and country parameter was added. |
PHP Date/Time Reference Manual