PHP timezone_location_get()Functions

PHP Date/TimePHP Date/Time Reference Manual

Example

Returns the location information of the specified timezone:

<?php
$tz=timezone_open("Asia/Taipei");
echo timezone_location_get($tz);
?>

Run Example »

Definition and Usage

timezone_location_get() returns the location information of the specified timezone.

Syntax

timezone_location_get(object);

Parameters Description
object Required. Specifies atimezone_open()returned DateTimeZone object.

Technical Details

Return Value: Returns an array containing the location information of the timezone.
PHP Version: 5.3+


PHP Date/TimePHP Date/Time Reference Manual Other Extensions