geoip_record_by_name

PECL geoip >= 0.2.0
geoip_record_by_name - Returns the detailed City information found in the GeoIP Database
Manual
Code Examples

Example #1 A geoip_record_by_name example

Result: Array ( [continent_code] => NA [country_code] => US [country_code3] => USA [country_name] => United States [region] => CA [city] => Marina Del Rey [postal_code] => [latitude] => 33.9776992798 [longitude] => -118.435096741 [dma_code] => 803 [area_code] => 310 )
PHP Version: