Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
elseif (!ereg("^.+@.+\\..+$", $email)) { $msg="• Invalid email: that is not a valid e-mail address."; $email=""; }
这就是我试图编辑它的代码的一部分,因此他们无法使用'并=在那里发送电子邮件
'
=
$email = 'st=ack@overflow.com'; if ( ! filter_var($email, FILTER_VALIDATE_EMAIL) || preg_match('#[\'=]#', $email)) { echo 'not "valid"'; }