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