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

I am a Computer Science graduate and a part time blogger from Lahore, Pakistan. I am a PHP programmer and a wordpress expert.

More Posts

Follow Me:
Facebook