php 判断手机号
function isMobile($mobile)
{
    $pattern = "/^1[0-9]{10}$/";
    if (preg_match($pattern,$mobile)){
        return true;
    }
    return false;
}本作品采用 知识共享署名-相同方式共享 4.0 国际许可协议 进行许可。
function isMobile($mobile)
{
    $pattern = "/^1[0-9]{10}$/";
    if (preg_match($pattern,$mobile)){
        return true;
    }
    return false;
}本作品采用 知识共享署名-相同方式共享 4.0 国际许可协议 进行许可。