src/Subnet.php
protected function convertIPv4Address($ipv4Address) {
        $longIP = ip2long($ipv4Address);

        if (!is_int($longIP)) {
            throw new RuntimeException(sprintf(
                'Unable to convert IP address "%s"',
                $ipv4Address
            ));
        }

        return $longIP;
    }
protected function convertIPv4Address($ipv4Address) {
        $longIP = ip2long($ipv4Address);

        if (!is_int($longIP)) {
            throw new RuntimeException(sprintf(
                'Unable to convert IP address "%s"',
                $ipv4Address
            ));
        }

        return $longIP;
    }
protected function convertIPv4Address ( $ ipv4Address ) { $ longIP = ip2long ( $ ipv4Address ) ; if ( ! is_int ( $ longIP ) ) { throw new RuntimeException ( sprintf ( 'Unable to convert IP address "%s"' , $ ipv4Address ) ) ; } return $ longIP ; }
Convert IPv4 address to integer

@param string $ipv4Address IPv4 address

@return int

@throws Exception on error
Convert IPv4 address to integer