大陆手机验证 不用那么花里胡哨的 现在的手机号前俩位几乎1-9了

时间:2019-09-17 10:58:16   收藏:0   阅读:89
function judgePhone($phone){
    if($phone && preg_math("/^1{1}\d{10}$/", $phone)){
        return true;
    }else{
        return false;
    }
}

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!