标签: php email
可能重复: How to check if the email is valid?
答案 0 :(得分:1)
验证电子邮件的简便方法只需使用type =“email”
实施例
<form> <input type="email" name="email"> <input type="submit" name="submit"> </form>
答案 1 :(得分:1)
filter_var('test@test.com', FILTER_VALIDATE_EMAIL)