IP Details

How to get city and country from IP in php

In this post we will show you how to get City Name, State Name, Country Name from any specific IP address using php code.

See the Method below

Copy above function and try below method to use this function

That’s it. Use the code to explore the IP information.