Skip to content

Commit

Permalink
* updated example
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.php.net/repository/pear/packages/Net_CheckIP2/trunk@288960 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
till committed Sep 29, 2009
1 parent 406d332 commit b124be6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/check-ip.php
Expand Up @@ -2,15 +2,15 @@
require_once 'Net/CheckIP2.php';

$ip_address = '89.247.12.130';
if (Net_CheckIP2::check_ip($ip_address)) {
if (Net_CheckIP2::isValid($ip_address)) {
echo 'yay!!!';
} else {
echo 'nay!!! :(';
}

$ip_address = 'some.host.name.domain.tld';
if (Net_CheckIP2::check_ip($ip_address)) {
echo 'yay!!!';
if (Net_CheckIP2::isValid($ip_address)) {
echo 'yay!!!';
} else {
echo 'nay!!! :(';
}
Expand Down

0 comments on commit b124be6

Please sign in to comment.