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