Net_GeoIP::lookupRegion()

Net_GeoIP::lookupRegion() --  returns the region for given IP address.

Synopsis

require_once "Net/GeoIP.php";

array lookupRegion() (string $addr)

Description

This method returns an array containing the country code and the region for the specified IP address. It works only with a non-free Region database.

Parameter

Throws

This method throws an exception if the IP address is invalid.