Posted By

yonekawa on 11/05/06


Tagged

email


Versions (?)

Who likes this?

5 people have marked this snippet as a favorite

blakeb
dmarten
demods
vali29
JimiJay


Email Check Snippet


 / Published in: PHP
 

  1. function is_valid_email($email)
  2. {
  3. if(preg_match("/[a-zA-Z0-9_-.+]+@[a-zA-Z0-9-]+.[a-zA-Z]+/", $email) > 0)
  4. return true;
  5. else
  6. return false;
  7. }

Report this snippet  

You need to login to post a comment.