Return location information for the given timezone:
<?php
$tz=timezone_open("Asia/Taipei");
print_r(timezone_location_get($tz));
?>
Try it Yourself »
The timezone_location_get() returns location information for the given timezone.
timezone_location_get
(object)
Parameter | Description |
---|---|
object | Required. Specifies a DateTimeZone object returned by timezone_open() |
Return Value: | Returns an array that contains location information for the timezone |
---|---|
PHP Version: | 5.3+ |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!