function isMobile($mobile)
{
$pattern = "/^1[0-9]{10}$/";
if (preg_match($pattern,$mobile)){
return true;
}
return false;
}
请注意,本文编写于 1053 天前,最后修改于 909 天前,其中某些信息可能已经过时。
请注意,本文编写于 1053 天前,最后修改于 909 天前,其中某些信息可能已经过时。
function isMobile($mobile)
{
$pattern = "/^1[0-9]{10}$/";
if (preg_match($pattern,$mobile)){
return true;
}
return false;
}