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: 3 years ago
Size: 196 bytes
 

Contents

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