PHP timezone_identifiers_list() Function
Example
Output all time zones in Asia:
<?php print_r(timezone_identifiers_list(16)); ?>
Definition and Usage
The timezone_identifiers_list() function returns an indexed array containing all timezone identifiers.
Syntax
timezone_identifiers_list(what,country);
Parameters | Description |
---|---|
what |
Optional. Specifies the DateTimeZone class constants
|
country | Optional. Specifies a two-letter ISO 3166-1 compatible country code. |
Technical Details
Return Value: | Returns an array of numbers if successful, FALSE otherwise. |
---|---|
PHP Version: | 5.2+ |
Update Log: | PHP 5.3: Optional New what and country Parameters. |