Posted By

masigno on 09/02/11


Tagged

validateemail


Versions (?)

Validate email


 / Published in: PHP
 

  1. /**
  2. *
  3. * PHP validate email
  4. * http://www.webtoolkit.info/
  5. *
  6. **/
  7.  
  8. function isValidEmail($email){
  9. return eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email);
  10. }

Report this snippet  

You need to login to post a comment.