geoip_region_by_name

PECL geoip >= 0.2.0
geoip_region_by_name - Get the country code and region
Manual
Code Examples

Example #1 A geoip_region_by_name example

Result: Array ( [country_code] => US [region] => CA )
PHP Version: