By 10/02/2016 5 Comments

Email address validation in PHP

  • In Php there are many techniques to validate an email address such as regular expressions etc but the recommended technique is to use FILTER_VALIDATE_EMAIL because it gives us an easiest, safest and well formed way for email validation.


$user_email = "someemail@";
if(!filter_var($user_email, FILTER_VALIDATE_EMAIL))
    echo "Email is invalid!";
    echo "Email is valid";

Posted in: PHP, Solutions

Leave your valuable Comment

Have a natural attraction for women cosmetics and replica watches uk clothes, no
more than two for men the most attractive one, is to make their own driving experience, happy and can serve as the facade of the car, another is to highlight the taste edify sentiment rolex replica watch. The replica rolex is undoubtedly the most fashionable accessories, wear a suit to attend the activities, but also get a decent match on the replica watches .