Posted By

websuslik on 06/19/09


Tagged

mail validate e-mail


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

medaqueno
vali29
muoto
BrianCoyDesign


Validate e-mail


 / Published in: PHP
 

  1. function is_email($mail) {
  2. return (preg_match("/[-a-zA-Z0-9_.+]+@[a-zA-Z0-9-]{2,}\.[a-zA-Z]{2,}/", $mail) > 0) ? true : false;
  3. }

Report this snippet  

You need to login to post a comment.