Posted By

stancell on 09/03/08


Tagged

email validating


Versions (?)

Who likes this?

7 people have marked this snippet as a favorite

brent-man
jfherring
mrjthethird
haozi
vali29
sybrex
batandwacolani


Is email valid. Validate email address in PHP


 / Published in: PHP
 

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

Report this snippet  

You need to login to post a comment.