Advertisement
rodro1

Php Filter function

Jan 23rd, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.20 KB | None | 0 0
  1. Php Filter function
  2.  
  3. public function isEmail($email = null) {
  4.         if (!empty($email)) {
  5.             $result = filter_var($email, FILTER_VALIDATE_EMAIL);
  6.             return !$result ? false : true;
  7.         }
  8.         return false;
  9.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement