Net_CheckIP2
[ class tree: Net_CheckIP2 ] [ index: Net_CheckIP2 ] [ all elements ]

Source for file check-ip.php

Documentation is available at check-ip.php

  1. <?php
  2. require_once 'Net/CheckIP2.php';
  3.  
  4. $ip_address '89.247.12.130';
  5. if (Net_CheckIP2::isValid($ip_address)) {
  6.     echo 'yay!!!';
  7. else {
  8.     echo 'nay!!! :(';
  9. }
  10.  
  11. $ip_address 'some.host.name.domain.tld';
  12. if (Net_CheckIP2::isValid($ip_address)) {
  13.     echo 'yay!!!';
  14. else {
  15.     echo 'nay!!! :(';
  16. }
  17. ?>

Documentation generated on Mon, 11 Mar 2019 15:34:47 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.