boolean Net_CheckIP::check_ip (
string $ip
)
この関数は、 与えられた文字列がIPv4文法として有効か検証することができます。
string $ip
- 検査するIPアドレス
boolean
-
文法が有効だった場合はTRUEが返ります。
This function can be called statically.
check_ip()の使用法
<?php
require_once "Net_CheckIP/CheckIP.php";
if (Net_CheckIP::check_ip("your_ip_goes_here")) {
// Syntax of the IP is ok
}
?>