Php validar email


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. function emailValido( $email ){
  2. return preg_match( "/^
  3. [\d\w\/+!=#|$?%{^&}*`'~-]
  4. [\d\w\/\.+!=#|$?%{^&}*`'~-]*@
  5. [A-Z0-9]
  6. [A-Z0-9.-]{1,61}
  7. [A-Z0-9]\.
  8. [A-Z]{2,6}$/ix", $email );
  9. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.