Check Valid Email Using PHP

Home/PHP, Techies/Check Valid Email Using PHP

Check Valid Email Using PHP

You can check if the email is valid or not by using regular experessions. Just copy and use the function below

function is_valid_email($email)
{ 
      if( preg_match("/[a-zA-Z0-9_-.+]+@[a-zA-Z0-9-]+.[a-zA-Z]+/", $email) > 0)
             return true;
      else
            return false;
}

Yumna Tatheer

Yamna Tatheer is a WordPress Plugin developer and a Top-Rated Upwork professional. She is a part-time blogger from Lahore and loves to write about wordpress and freelance industry.

More Posts

Follow Me:
Facebook

About the Author:

Yamna Tatheer is a Wordpress Plugin developer and a Top-Rated Upwork professional. She is a part-time blogger from Lahore and loves to write about wordpress and freelance industry.

Leave A Comment