Fungsi timezone_location_get() PHP
Example
Return location information of the specified timezone:
<?php $tz=timezone_open("America/New_York"); echo timezone_location_get($tz); ?>
Definition and Usage
timezone_location_get() returns the location information of the specified timezone.
Syntax
timezone_location_get(object);
Parameter | Description |
---|---|
object | Required. Specifies by timezone_open() The returned DateTimeZone object. |
Technical Details
Return value: | Return an array containing location information of the timezone. |
---|---|
Version PHP: | 5.3+ |