protected function checkIps($requestedIp, $ips)
    {
        $ips = (array) $ips;

        $valid = false;
        $i = 0;

        while ($i<count($ips) && !$valid) {
            $valid = IpUtils::checkIp($requestedIp, $ips[$i]);
            $i++;
        }

        return $valid;
    }
protected function checkIps($requestedIp, $ips)
    {
        $ips = (array) $ips;

        $valid = false;
        $i = 0;

        while ($i<count($ips) && !$valid) {
            $valid = IpUtils::checkIp($requestedIp, $ips[$i]);
            $i++;
        }

        return $valid;
    }
protected function checkIps ( $ requestedIp , $ ips ) { $ ips = ( array ) $ ips ; $ valid = false ; $ i = 0 ; while ( $ i < count ( $ ips ) && ! $ valid ) { $ valid = IpUtils :: checkIp ( $ requestedIp , $ ips [ $ i ] ) ; $ i ++ ; } return $ valid ; }
Checks if the requested ip is valid.

@param string       $requestedIp
@param string|array $ips
@return boolean
Checks if the requested ip is valid .