Please wait, loading...

 

Check Valid Email Using PHP - Emerald Tech

February 27, 20120

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

Leave a Reply

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

Copyright @ Yamna Tatheer CEO Emerald Technologies Registration Number: 3520166158082