Validating email php

Some top-level domains are more than 4 characters long, such as .museum; it would be easy enough to add support for this by removing the number 4 after the comma.Your regex does not support plus signs in the local part of the e-mail address.Here I'll show you two different methods to validate email address in php.The first method is by using If your PHP version is less than 5.2.0, then you have to go with the (crazy) regular expression method to validate the email address.Here is the php function to check if email-id is valid or not using regular expressions.We see websites having links to contact by way of Contact Us or An Inquiry form or some other way.

If you want to know which regex pattern PHP (currently) uses to validate email addresses see the PHP source.

To sum it up, we receive data, we validate it and then we tell our application how to react.


  1. Pingback:

  2. eric   •  

    The decision was followed by an increase in interracial marriages in the U.

  3. eric   •  

    Here you will find the finest looking people from all around the globe that really have everything that you could ever ask for and that really like getting down and dirty with some wild kinky action.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>