PHP timezone_identifiers_list() Functie
Voorbeeld
Print alle tijdzones in Afrika:
<?php
print_r(timezone_identifiers_list(1));
?>
Definitie en gebruik
De timezone_identifiers_list() retourneert een geïndexeerde array met alle tijdzone-ID's.
Syntaxis
timezone_identifiers_list(what, country)
Parameterwaarden
Parameter | 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 |
Technische details
Winstwaarde: | Retourneert een geïndexeerde array bij succes. ONWAAR bij fout |
---|---|
PHP-versie: | 5.2+ |
PHP-wijzigingslogboek: | PHP 5.3: De optionele wat- en landparameters zijn toegevoegd |
❮ PHP Datum/Tijd Referentie