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: 8 months 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"] :)

For more information send a message to info at phpclasses dot org.