Freelance PHP programmer India | Freelance web developer india | Web development India | web developer CV india | Compiling PHP and Apache 2 from source on Linux
DateTimeZone
PHP Manual

DateTimeZone::getLocation

(No version information available, might be only in CVS)

DateTimeZone::getLocationReturns location information for a timezone

Description

public array DateTimeZone::getLocation ( void )

Returns location information for a timezone, including country code, latitude/longitude and comments.

Parameters

This function has no parameters.

Return Values

Array containing location information about timezone.

Examples

Example #1 DateTimeZone::getLocation() example

<?php
$tz 
= new DateTimeZone("Europe/Prague");
print_r($tz->getLocation());
?>

The above example will output:

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


DateTimeZone
PHP Manual