<?php
header("Content-type:text/html;charset=utf-8");
$email = '123456@qq.com';
$bool = filter_var($email,FILTER_VALIDATE_EMAIL);
echo $bool ;
//输出 123456@qq.com
<?php
header("Content-type:text/html;charset=utf-8");
$email = '123456@qq.com';
$bool = filter_var($email,FILTER_VALIDATE_EMAIL);
echo $bool ;
//输出 123456@qq.com
本文标题:发现一个php内置函数用来验证email地址
本文链接:https://www.haomeiwen.com/subject/rvwbkxtx.html
网友评论