6

validateipaddress

validate_ip_address
SYNOPSIS

validate_ip_address($ipaddress)

DESCRIPTION
CODE
  1. function validate_ip_address($ipaddress) {
  2.     return preg_match('/^(([1-9]?[0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([1-9]?[0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/', $ipaddress);
  3. }
SEE ALSO

clientipaddress

Comments

To add a comment, click here.