timezone_abbreviations_list()

timezone_abbreviations_list() — Alias of DateTimeZone::listAbbreviations().

Built-in function of PHP 8.5. The manual lists it as available in PHP 5 >= 5.2.0, PHP 7, PHP 8. This page is the reference card: signature, parameters and return value, plus the changelog and the example the manual provides.

timezone_abbreviations_list() is an alias of DateTimeZone::listAbbreviations(): same parameters, same return value.

Signature

timezone_abbreviations_list(): array

Parameters

This function takes no parameters.

Return value

Returns the array of timezone abbreviations.

Example

A runnable snippet:

$timezone_abbreviations = DateTimeZone::listAbbreviations(); print_r($timezone_abbreviations["acst"]);

Output:

Array ( [0] => Array ( [dst] => [offset] => 34200 [timezone_id] => Australia/Adelaide ) [1] => Array ( [dst] => [offset] => 34200 [timezone_id] => Australia/Broken_Hill ) [2] => Array ( [dst] => [offset] => 34200 [timezone_id] => Australia/Darwin ) [3] => Array ( [dst] => [offset] => 34200 [timezone_id] => Australia/North ) [4] => Array ( [dst] => [offset] => 34200 [timezone_id] => Australia/South ) [5] => Array ( [dst] => [offset] => 34200 [timezone_id] => Australia/Yancowinna ) )

All PHP 8.5 built-in functions

Reference card built from the PHP manual page timezone_abbreviations_list() (PHP documentation, CC BY 3.0). The page is generated from the manual, so the wording of the parameter and return value text follows php.net.