Net_IPv4::ip2double()

Net_IPv4::ip2double() -- Converts an IP address to a PHP double.

Synopsis

require_once('Net/IPv4.php');

string ip2double (string $ip_addr)

Description

Converts an IP address to a PHP double. A double is, in contrast to ip2long's integer, not signed and may be more comfortable when presented to the user.

Note

This function can be called statically.