/ Published in: PHP
Expand |
Embed | Plain Text
function is_valid_email( $email ) { } '[email protected]' ); foreach( $emails as $email ) { }
Comments
Subscribe to comments
You need to login to post a comment.
gdonald on 01/12/07
3 people have marked this snippet as a favorite
function is_valid_email( $email ) { } '[email protected]' ); foreach( $emails as $email ) { }
Subscribe to comments
You need to login to post a comment.
The above code doesn't work. It lets through the following invalid email addresses:
Also, your regex is limiting the use of many other ASCII characters that RFC-2822 allows in an email address.
See http://www.ilovejackdaniels.com/php/email-address-validation/ for the proper way to do RFC 2822 validation.
http://www.ilovejackdaniels.com/php/email-address-validation/
Has been Relocated by request of the TRADEMARK.
HERE is the new link: http://www.addedbytes.com/php/email-address-validation/