PHP timezone_identifiers_list() Funksie
Voorbeeld
Druk alle tydsones in Afrika:
<?php
print_r(timezone_identifiers_list(1));
?>
Definisie en gebruik
Die tydsone_identifiseerders_lys() gee 'n geïndekseerde skikking terug wat alle tydsone identifiseerders bevat.
Sintaksis
timezone_identifiers_list(what, country)
Parameterwaardes
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 |
Tegniese besonderhede
Terugkeerwaarde: | Wys 'n geïndekseer skikking op sukses. ONWAAR op mislukking |
---|---|
PHP weergawe: | 5,2+ |
PHP Changelog: | PHP 5.3: Die opsionele wat en land parameters is bygevoeg |
❮ PHP Datum/Tyd Verwysing