PHP timezone_abbreviations_list() Function
In this chapter you will learn:
- Definition for PHP timezone_abbreviations_list() Function
- Syntax for PHP timezone_abbreviations_list() Function
- Return value for PHP timezone_abbreviations_list() Function
- Example - Print dst, offset, and timezone name for the "act" timezone
Definition
The timezone_abbreviations_list() returns an associative array containing dst, offset, and the timezone name.
Syntax
PHP timezone_abbreviations_list() Function has the following syntax.
timezone_abbreviations_list();
Return
PHP timezone_abbreviations_list() Function returns an associative array on success. FALSE on failure.
Example
Print dst, offset, and timezone name for the "act" timezone:
<?php
$tzlist=timezone_abbreviations_list();
print_r($tzlist["act"]);
?>
The code above generates the following result.
Next chapter...
What you will learn in the next chapter:
- Definition for PHP timezone_identifiers_list() Function
- Syntax for PHP timezone_identifiers_list() Function
- Parameter for PHP timezone_identifiers_list() Function
- Return value for PHP timezone_identifiers_list() Function
- Example - Print all timezones in Africa
Home » PHP Tutorial » PHP Date Functions