How to Using timezone_location_get() PHP

How to Using timezone_location_get() PHP


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.


View Answers

February 10, 2011 at 6:19 PM


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


$tz = new DateTimeZone("India/Kolkata");

Related Tutorials/Questions & Answers: