#Validation mail ( regex) # function isValidEmail($email){ return preg_match("/^[\.A-z0-9_\-\+]+[@][A-z0-9_\-]+([.][A-z0-9_\-]+)+[A-z]{1,4}$/", $email); } $result = isValidEmail('test@test.com=')