Hiteshkumar
How to Using timezone_location_get() PHP
1 Answer(s)      4 years and 7 months ago
Posted in : PHP

Hi,

I am trying to create an application using the timezonelocationget() in PHP to retrieve the data of country code & latitude/longitude. I need the help of PHP developer who can suggest or provides online help references.

Thanks,

Advertisement
View Answers

February 10, 2011 at 6:19 PM


Hi,

Did you trying to get the data of specific country location. I herewith provide the example of timezonelocationget function PHP used for returning location information of the timezone.

Syntax for timezone location get function:

public array DateTimeZone::getLocation ( void )

Find the example of timezonelocationget() in PHP

<?php

$tz = new DateTimeZone("India/Kolkata");
print_r($tz->getLocation());
?>









Related Tutorials/Questions & Answers: