Posted By

fruehjahr on 01/05/09


Tagged

email validation


Versions (?)

Who likes this?

5 people have marked this snippet as a favorite

HUGOT
Scooter
will_00
umang_nine
BrianCoyDesign


Email address check


 / Published in: PHP
 

URL: http://code.google.com/p/php-email-address-validation/

Checks for a valid email address using the php-email-address-validation class. Source and docs = URL

  1. include('EmailAddressValidator.php');
  2.  
  3. $validator = new EmailAddressValidator;
  4. if ($validator->check_email_address('[email protected]')) {
  5. // Email address is technically valid
  6. }
  7. else {
  8. // Email not valid
  9. }

Report this snippet  

You need to login to post a comment.