public function checkIpIsInRange($ipGiven, $ipStart, $ipEnd)
    {
        $sReturn     = 'out';
        $startNo     = $this->convertIpToNumber($ipStart);
        $endNo       = $this->convertIpToNumber($ipEnd);
        $evaluatedNo = $this->convertIpToNumber($ipGiven);
        if ($sReturn == 'out') {
            if (($evaluatedNo >= $startNo) && ($evaluatedNo <= $endNo)) {
                $sReturn = 'in';
            }
        }
        return $sReturn;
    }
public function checkIpIsInRange($ipGiven, $ipStart, $ipEnd)
    {
        $sReturn     = 'out';
        $startNo     = $this->convertIpToNumber($ipStart);
        $endNo       = $this->convertIpToNumber($ipEnd);
        $evaluatedNo = $this->convertIpToNumber($ipGiven);
        if ($sReturn == 'out') {
            if (($evaluatedNo >= $startNo) && ($evaluatedNo <= $endNo)) {
                $sReturn = 'in';
            }
        }
        return $sReturn;
    }
public function checkIpIsInRange ( $ ipGiven , $ ipStart , $ ipEnd ) { $ sReturn = 'out' ; $ startNo = $ this -> convertIpToNumber ( $ ipStart ) ; $ endNo = $ this -> convertIpToNumber ( $ ipEnd ) ; $ evaluatedNo = $ this -> convertIpToNumber ( $ ipGiven ) ; if ( $ sReturn == 'out' ) { if ( ( $ evaluatedNo >= $ startNo ) && ( $ evaluatedNo <= $ endNo ) ) { $ sReturn = 'in' ; } } return $ sReturn ; }
Determines if a given IP is with a defined range

@param ipv4 $ipGiven
@param ipv4 $ipStart
@param ipv4 $ipEnd
@return string
Determines if a given IP is with a defined range