标签:用法 targe 过滤 get name else tar 电机 some
FILTER_VALIDATE_EMAIL 过滤器把值作为 e-mail 地址来验证。
<?php $email = "someone@exa mple.com"; if(!filter_var($email, FILTER_VALIDATE_EMAIL)) { echo "E-mail is not valid"; } else { echo "E-mail is valid"; } ?>
代码的输出如下所示:
E-mail is not valid
标签:用法 targe 过滤 get name else tar 电机 some
原文地址:https://www.cnblogs.com/furuihua/p/11691038.html