private function cidrMatch($ip, $range) {
        if ($this->isIPv6($ip)) {
            return $this->cidr6Match($ip, $range);
        } else {
            return $this->cidr4Match($ip, $range);
        }
    }
private function cidrMatch($ip, $range) {
        if ($this->isIPv6($ip)) {
            return $this->cidr6Match($ip, $range);
        } else {
            return $this->cidr4Match($ip, $range);
        }
    }
private function cidrMatch ( $ ip , $ range ) { if ( $ this -> isIPv6 ( $ ip ) ) { return $ this -> cidr6Match ( $ ip , $ range ) ; } else { return $ this -> cidr4Match ( $ ip , $ range ) ; } }
Check if an IP address is in a subnet

@param string $ip The IP address to check
@param string $range A CIDR notated IP address and routing prefix
@return boolean
Check if an IP address is in a subnet