src/Subnet.php
protected function isUsed($longIP) {
        foreach ($this->taken as $taken) {
            $takenIPLong = $this->convertIPv4Address($taken);

            if ($takenIPLong === $longIP) {
                return true;
            }
        }

        return false;
    }
protected function isUsed($longIP) {
        foreach ($this->taken as $taken) {
            $takenIPLong = $this->convertIPv4Address($taken);

            if ($takenIPLong === $longIP) {
                return true;
            }
        }

        return false;
    }
protected function isUsed ( $ longIP ) { foreach ( $ this -> taken as $ taken ) { $ takenIPLong = $ this -> convertIPv4Address ( $ taken ) ; if ( $ takenIPLong === $ longIP ) { return true ; } } return false ; }
Is IP address already taken in subnet?

@param int $longIP IPv4 address converted to long integer

@return bool

@throws Exception on error
Is IP address already taken in subnet?