PHP Tutorial - PHP timezone_abbreviations_list() Function






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.