PHP: Is IP Is it a valid IP? <?php function is_ip($text) { foreach (explode(".", $text) as $num) { if ($num > 255) return false; } return true; } ?> UsageAlthough anything above 224.* and the private and loopback addresses are probably not useful, they're still IP'. Email ThisBlogThis!Share to XShare to Facebook
0 comments:
Post a Comment