check if an email is valid php code example Example: check mail php filter_var($email, FILTER_VALIDATE_EMAIL)