/ Published in: PHP
Expand |
Embed | Plain Text
function is_email_valid($email) { return (preg_match("/[-a-zA-Z0-9_.+]+@[a-zA-Z0-9-]{2,}\.[a-zA-Z]{2,}/", $email) > 0) ? true : false; }
You need to login to post a comment.
stancell on 09/03/08
7 people have marked this snippet as a favorite
brent-man
jfherring
mrjthethird
haozi
vali29
sybrex
batandwacolani
function is_email_valid($email) { return (preg_match("/[-a-zA-Z0-9_.+]+@[a-zA-Z0-9-]{2,}\.[a-zA-Z]{2,}/", $email) > 0) ? true : false; }
You need to login to post a comment.