Man Page: datetimezone.listidentifiers
Operating Environment: php
Section: 3
DATETIMEZONE.LISTIDENTIFIERS(3) 1 DATETIMEZONE.LISTIDENTIFIERS(3) DateTimeZone::listIdentifiers - Returns a numerically indexed array containing all defined timezone identifiers Object oriented styleSYNOPSISpublicstatic array DateTimeZone::listIdentifiers NULL ([int $what = DateTimeZone::ALL], [string $country])DESCRIPTIONProcedural style array timezone_identifiers_list NULL ([int $what = DateTimeZone::ALL], [string $country])PARAMETERSo $what - One of DateTimeZone class constants. o $country - A two-letter ISO 3166-1 compatible country code. Note This option is only used when $what is set to DateTimeZone::PER_COUNTRY.RETURN VALUESReturns array on success or FALSE on failure.CHANGELOG+--------+---------------------------------------------------+ |Version | | | | | | | Description | | | | +--------+---------------------------------------------------+ | 5.3.0 | | | | | | | Added the optional $what and $country parame- | | | ters. | | | | +--------+---------------------------------------------------+EXAMPLESExample #1 A timezone_identifiers_list(3) example <?php $timezone_identifiers = DateTimeZone::listIdentifiers(); for ($i=0; $i < 5; $i++) { echo "$timezone_identifiers[$i] "; } ?> The above example will output something similar to: Africa/Abidjan Africa/Accra Africa/Addis_Ababa Africa/Algiers Africa/AsmaraSEE ALSOtimezone_abbreviations_list(3). PHP Documentation Group DATETIMEZONE.LISTIDENTIFIERS(3)
| Related Man Pages |
|---|
| datetime.settimezone(3) - php |
| geoip_country_code3_by_name(3) - php |
| datetime(3) - php |
| datefmt_create(3) - php |
| datetime.gettimezone(3) - php |
| Similar Topics in the Unix Linux Community |
|---|
| merging two lines in a file |
| sort by column or specific order |
| Any ideas how to accomplish this storage move? |
| Help me in this script fast |
| I want to register an account from blocked country |