Net_IPv6::removeNetmaskSpec()

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

Synopsis

require_once 'Net/IPv6.php';

string Net_IPv6::removeNetmaskSpec ( string $ip )

Description

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

Parameter

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

Return value

string - the IP without netmask length specification.

Note

This function can be called statically.

Method available since: Release 1.1.0

Checks if an IP is in a specific address space (Previous) Tests for a prefix length specification in the address and removes the prefix length, if exists. (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.