src/IPAddress.php
public function toInteger(): int
    {
        return ($this->myOctets[0] << 24) + ($this->myOctets[1] << 16) + ($this->myOctets[2] << 8) + $this->myOctets[3];
    }
public function toInteger(): int
    {
        return ($this->myOctets[0] << 24) + ($this->myOctets[1] << 16) + ($this->myOctets[2] << 8) + $this->myOctets[3];
    }
public function toInteger ( ) : int { return ( $ this -> myOctets [ 0 ] << 24 ) + ( $ this -> myOctets [ 1 ] << 16 ) + ( $ this -> myOctets [ 2 ] << 8 ) + $ this -> myOctets [ 3 ] ; }
Returns the IP address as an integer.

@since 1.2.0

@return int The IP address as an integer.
Returns the IP address as an integer .