method:ip ( ip, ipv6, allow_private );return type:booleanspecial:staticcontent:ใช้ตรวจสอบว่าเป็นรูปแบบ ip หรือไม่example:$my_ip = "192.168.0.1"; if ( valid::ip ( $my_ip ) ) { echo "This is the ip."; }