private function calculateIpRange(int $cidrIpLong, int $cidrMask): array
    {
        $netWork = $cidrIpLong & $this->netMask($cidrMask);
        $lower   = $netWork + 1; // ignore network ID (eg: 192.168.1.0)
        $upper   = ($netWork | $this->inverseNetMask($cidrMask)) - 1 ; //  ignore broadcast IP (eg: 192.168.1.255)
        return array($lower, $upper);
    }
private function calculateIpRange(int $cidrIpLong, int $cidrMask): array
    {
        $netWork = $cidrIpLong & $this->netMask($cidrMask);
        $lower   = $netWork + 1; // ignore network ID (eg: 192.168.1.0)
        $upper   = ($netWork | $this->inverseNetMask($cidrMask)) - 1 ; //  ignore broadcast IP (eg: 192.168.1.255)
        return array($lower, $upper);
    }
private function calculateIpRange ( int $ cidrIpLong , int $ cidrMask ) : array { $ netWork = $ cidrIpLong & $ this -> netMask ( $ cidrMask ) ; $ lower = $ netWork + 1 ; // ignore network ID (eg: 192.168.1.0) $ upper = ( $ netWork | $ this -> inverseNetMask ( $ cidrMask ) ) - 1 ; //  ignore broadcast IP (eg: 192.168.1.255) return array ( $ lower , $ upper ) ; }
returns lower and upper ip for IP range as long

@param   int  $cidrIpLong
@param   int  $cidrMask
@return  int[]
returns lower and upper ip for IP range as long