/**
* 实现功能 :邮箱正则
* author: 程江浩 2023/5/23
* @param $email
* @return false|int
*/
public static function email_preg($email)
{
$preg_email = '/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/';
return preg_match($preg_email,$email);
}
07-23
725
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-23
847
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)