$email = "email@email.fr"; if (!filter_var($email, FILTER_VALIDATE_EMAIL)) { $emailErr = "Email invalide"; }