src/includes/classes/Core/Utils/Ip.php
public function region(string $ip): string
    {
        if (($geo = $this->geoData($ip))) {
            return $geo->region;
        }
        return ''; // Failure.
    }
public function region(string $ip): string
    {
        if (($geo = $this->geoData($ip))) {
            return $geo->region;
        }
        return ''; // Failure.
    }
Region code for IP address.

@since 150424 Initial release.

@param string $ip An IP address.

@return string Region code for IP address.