Return the location details for the specified timezone.
<?php $tz=timezone_open(“Asia/Taipei”); print_r(timezone_location_get($tz)); ?> |
The timezone_location_get() function returns the location details for the specified timezone.
timezone_location_get(object) |
Parameter |
Description |
object |
Mandatory. Specifies a DateTimeZone object obtained from timezone_open(). |
Return Value: |
Returns an array containing location details for the timezone. |
PHP Version: |
5.3+ |