Net_IPv6::removeNetmaskSpec() – Removes the Netmask length specification


require_once 'Net/IPv6.php';

string Net_IPv6::removeNetmaskSpec ( string $ip )


Removes a possible existing netmask length specification in an IP addresse.


  • string $ip - the IP address in Hex format, compressed IPs are allowed

Return value

string - the IP without netmask length specification.


This function can be called statically.

Method available since: Release 1.1.0

Net_IPv6::isInNetmask() (Previous) Net_IPv6::splitV64() (Next)
Last updated: Tue, 02 Jun 2009 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.