Sunnysideup\CloudFlare\Api\CloudFlareGeoIP::ip2country
Find the country for an IP address.
Always returns a string (parent method may return array) To return the code only, pass in true for the $codeOnly parameter.
Signature
public function ip2country(string
$address,
[boolean
$codeOnly = false] )
Parameters
$address
— string- The IP address to get the country of
$codeOnly
— boolean- Returns just the country code
Returns
- string