paatrick

Simple Validation

Jan 27th, 2021
669
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. echo filter_var("john.doe@gmail.com", FILTER_VALIDATE_EMAIL), '<br />';
  2.  
  3. echo filter_var("http://www.google.com/", FILTER_VALIDATE_URL), '<br />';
  4.  
  5. echo filter_var("192.168.0.0", FILTER_VALIDATE_IP), '<br />';
RAW Paste Data