Easy Tutorial
❮ Php Image Type To Extension Func String Stristr ❯

PHP timezone_identifiers_list() Function

PHP Date/Time Reference Manual

Example

Output all time zones in Africa:


Definition and Usage

timezone_identifiers_list() returns a numerically indexed array containing all timezone identifiers.

Syntax

Parameter Description
what Optional. Specifies a DateTimeZone class constant <br> <br>1 = AFRICA <br>2 = AMERICA <br>4 = ANTARCTICA <br>8 = ARCTIC <br>16 = ASIA <br>32 = ATLANTIC <br>64 = AUSTRALIA <br>128 = EUROPE <br>256 = INDIAN <br>512 = PACIFIC <br>1024 = UTC <br>2047 = ALL <br>4095 = ALL_WITH_BC <br>4096 = PER_COUNTRY
country Optional. Specifies a two-letter ISO 3166-1 compatible country code.

Technical Details

Return Value: Returns a numerically indexed array on success, FALSE on failure.
PHP Version: 5.2+
--- ---
Changelog: PHP 5.3: Added optional what and country parameters.
--- ---

❮ Php Image Type To Extension Func String Stristr ❯