Output all time zones in Africa:
<?phpprint_r(timezone_identifiers_list(1));?>timezone_identifiers_list() returns a numeric array with all time zone identifiers.
timezone_identifiers_list( what,country);
parameter | describe |
---|---|
what | Optional. Specify a DateTimeZone class constant 1 = AFRICA2 = AMERICA4 = ANTARCTICA8 = ARCTIC16 = ASIA32 = ATLANTIC64 = AUSTRALIA128 = EUROPE256 = INDIAN512 = PACIFIC1024 = UTC2047 = ALL4095 = ALL_WITH_BC4096 = PER_COUNTRY |
country | Optional. Specifies a two-letter ISO 3166-1 compliant country code. |
Return value: | Returns an array of values on success, FALSE on failure. |
---|---|
PHP version: | 5.2+ |
Update log: | PHP 5.3: Added optional what and country parameters. |