PHP Classes

File: sample.php

Recommend this page to a friend!
  Classes of Dixan Santiesteban   PHP GeoLocation Country   sample.php   Download  
File: sample.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP GeoLocation Country
Get country coordinates using the country code
Author: By
Last change:
Date: 2 years ago
Size: 196 bytes


Class file image Download
include 'code2latlon.class.php';
$latlon = new Code2latlon;
$latlon->get('CU'); # return ["23.11666667","-82.35"]
echo $latlon->getByIndex(51); # return ["23.11666667","-82.35"] :)