This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* echo ip_info("Visitor", "Country"); // India | |
* echo ip_info("Visitor", "Country Code"); // IN | |
* echo ip_info("Visitor", "State"); // Andhra Pradesh | |
* echo ip_info("Visitor", "City"); // Proddatur | |
* echo ip_info("Visitor", "Address"); // Proddatur, Andhra Pradesh, India | |
* print_r(ip_info("Visitor", "Location")); // Array ( [city] => Proddatur [state] => Andhra Pradesh [country] => India [country_code] => IN [continent] => Asia [continent_code] => AS ) | |
* | |
*/ |