Curriculum
Course: PHP Basic
Login

Curriculum

PHP Basic

PHP Install

0/1

PHP Casting

0/1

PHP Constants

0/1

PHP Magic Constants

0/1

PHP Operators

0/1

PHP Reference

0/276
Text lesson

timezone_abbreviations_list()

Example

Display the DST, offset, and timezone name for the “ACT” timezone.

<?php
$tzlist = DateTimeZone::listAbbreviations();
print_r($tzlist[“acst”]);
?>

Definition and Usage

The timezone_abbreviations_list() function returns an associative array that includes DST, offset, and the timezone name.

Syntax

timezone_abbreviations_list()

Technical Details

 

Return Value:

Returns an associative array on success or FALSE on failure.

PHP Version:

5.2+