DateTimeZone::getLocation

PHP 5 >= 5.3.0, PHP 7, PHP 8
DateTimeZone::getLocation - Returns location information for a timezone
Manual
Code Examples

DateTimeZone::getLocation( ): public array|false

Procedural style

arrayfalsetimezone_location_get DateTimeZoneobject

Parameters

object

Procedural style only: A DateTimeZone object returned by timezone_open

Return Values

Array containing location information about timezone or false on failure.

Example of DateTimeZone::getLocation

Show all examples for DateTimeZone::getLocation

PHP Version:


Function DateTimeZone::getLocation:

Date and Time Functions

Most used PHP functions