Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

timezone_location_get

Description

Returns location information for a timezone

Syntax

timezone_location_get ( DateTimeZone $object ) : array

Parameters

object

A DateTimeZone object returned by timezone_open()

Return

Array containing location information about timezone or FALSE on failure.

Examples

1

<?

$object = timezone_open("Europe/Prague");

$return = timezone_location_get($object);

print_r($return);

?>
Array
(
    [country_code] => CZ
    [latitude] => 50.08333
    [longitude] => 14.43333
    [comments] => 
)
HomeMenu