From Net_CheckIP to Net_CheckIP2

Net_CheckIP2 is meant to replace the Net_CheckIP package with a couple small changes:

Old

<?php
require_once 'Net/CheckIP.php';
$ip '127.0.0.1';
if (
Net_CheckIP::check_ip($ip) {
    echo 
'This is a valid IPv4 address!';
}
?>

New

<?php
require_once 'Net/CheckIP2.php';
$ip '127.0.0.1';
if (
Net_CheckIP2::isValid($ip) {
    echo 
'This is a valid IPv4 address!';
}
?>
Validation of IPv4 addresses (Previous) Class networks (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.