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!';
}
?>