DateTimeZone::getLocationtimezone_location_getReturns location information for a timezone DescriptionObject-oriented style
public arrayfalse DateTimeZone::getLocation()
Procedural style arrayfalse timezone_location_get(DateTimeZone
$object)Returns location information for a timezone, including country code, latitude/longitude and comments. Parameters
Return Values
Array containing location information about timezone or Examples
Example #1 DateTimeZone::getLocation example The above example will output:
Array
(
[country_code] => ID
[latitude] => -6.16667
[longitude] => 106.8
[comments] => Java, Sumatra
)
Array
(
[country_code] => ID
[latitude] => -6.16667
[longitude] => 106.8
[comments] => Java, Sumatra
)
The See Also
|