/** * Get two-letter continent code. * * @return string|false Continent code or FALSE on failure */ public function getContinentCode() { // Use forked edition: https://github.com/netresearch/Net_GeoIP if (method_exists($this->geoLiteCountry, 'lookupContinentCode')) { return $this->geoLiteCountry->lookupContinentCode($this->ip); } // Currently not available within official Net_GeoIP package return false; }