Return location information for a specified time zone:
<?php$tz=timezone_open("Asia/Taipei");echo timezone_location_get($tz);?>timezone_location_get() returns location information for the specified time zone.
timezone_location_get (object);
| parameter | describe |
|---|---|
| object | Required. Specifies a DateTimeZone object returned by timezone_open(). |
| Return value: | Returns an array containing location information for the time zone. |
|---|---|
| PHP version: | 5.3+ |