DateTimeZone::getLocationtimezone_location_getReturns location information for a timezone DescriptionObject oriented style
public array DateTimeZone::getLocation
( void
)
Procedural style
array timezone_location_get
( DateTimeZone
$object
)Returns location information for a timezone, including country code, latitude/longitude and comments. Parameters
Return ValuesArray containing location information about timezone. Examples
Example #1 DateTimeZone::getLocation example
<?php The above example will output: Array ( [country_code] => CZ [latitude] => 50.08333 [longitude] => 14.43333 [comments] => ) Array ( [country_code] => CZ [latitude] => 50.08333 [longitude] => 14.43333 [comments] => ) |