Net_IPv6::isInNetmask()

Net_IPv6::isInNetmask() -- Checks if an IP is in a specific address space

Synopsis

require_once 'Net/IPv6.php';

boolean Net_IPv6::isInNetmask (string $ip, string $netmask [, int $bits = null])

Description

Checks if an (compressed) IP is in a specific address space. If the IP does not contain the number of netmask bits (for example: F8000::FFFF/16), then you have to use the $bits parameter.

Parameter

Return value

boolean - TRUE, if the IP is in the address space.

Note

This function can be called statically.

Method available since: Release 1.1.0