China mobile phone verification without the bells and whistles that before now the phone number of the previous two almost 1-9

function judgePhone($phone){
    if($phone && preg_math("/^1{1}\d{10}$/", $phone)){
        return true;
    }else{
        return false;
    }
}

 

Guess you like

Origin www.cnblogs.com/G921123/p/11532246.html