|
geoip_country_code_by_name
Get the two letter country code
(PECL geoip:0.2.0-1.0.1)
The geoip_country_code_by_name() function will return the two letter country code corresponding to a hostname or an IP address. Return Values
Returns the two letter ISO country code on success, or ExamplesExample 764. A geoip_country_code_by_name() exampleThis will print where the host example.com is located. <?php The above example will output: This host is located in: US |