PHP timezone_name_from_abbr() Function

12 Jan 2025 | 1 min read

The PHP timezone_name_from_abbr() Function is used to show name of timezone from the abbreviation.

Syntax

Parameters

ParameterDescriptionRequired/Optional
abbrSpecifies the timezone abbreviationrequired
gmtoffseetSpecifies the offset from GMT in secondsoptional
Is_dtSpecifies daylight saving time indicator.optional

Return

This function returns the time zone name on success or FALSE on failure.

Example 1

Output:

 America/New_York Europe/Helsinki 

Example 2

Output:

 Europe/Berlin Europe/Paris