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.





















Home »
  PHP Tutorial »
    Function reference »




PHP Array Functions
PHP Calendar Functions
PHP Class Functions
PHP Data Type Functions
PHP Date Functions
PHP File Functions
PHP Image Functions
PHP Math Functions
PHP MySQLi Functions
PHP SimpleXML Functions
PHP String Functions
PHP XML Functions
PHP Zip Functions