Net_IPv4::calculate()

Net_IPv4::calculate() -- Calculates network information based on an IP address and netmask.

Synopsis

require_once('Net/IPv4.php');

mixed calculate ()

Description

Fully populates the object properties based on the IP address and netmask/bitmask properties. Once these two fields are populated, calculate() will perform calculations to determine the network and broadcast address of the network.

Example

Return value

boolean - Returns TRUE on success, PEAR_Error on failure.

Note

This function can not be called statically.