Search for in the Packages This site (using Yahoo!) Developers Developer mailing list General mailing list SVN commits mailing list
bool validateIP ( string $ip_addr )
Validates the syntax of an IP address in dot-quad format. Returns true if address is valid, false if not.
This function can be called statically.
<?php require_once("Net/IPv4.php"); $valid_ip = Net_IPv4::validateIP($ip_address); ?>