Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa PHP How to Using timezone_location_get() PHP
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Hiteshkumar
How to Using timezone_location_get() PHP
1 Answer(s)      3 years and 10 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:
 

 

 

DMCA.com