Net_IPv4::validateNetmask() – Validate the syntax of the given netmask.


require_once 'Net/IPv4.php';

bool validateNetmask ( string $netmask )


Validates the syntax of a dot-quad formatted netmask. Returns true if netmask is valid, false if not.


This function can be called statically.

Validate the syntax of the given IP adress. (Previous) Parse a CIDR address (address/netmask combination). (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.