/*
手机号正则
author:咔咔
time:2018.9.12
*/
if(preg_match("/^1[34578]{1}\d{9}$/",$data['tel'])){
$this->result('',200,'','json');
}else{
$this->result('',400,'请填写正确电话','json');
}
PHP手机号验证正则
最新推荐文章于 2024-07-21 10:02:29 发布