验证手机号的 正则 如何写啊?
只要一个处理过程~~
我写了个可是不对... 应该怎么写 HELP!!
<?
function myfun($mobilee)
{
if($mobile.length<11 or $mobile=="")
{
echo "您输入的手机号码错误,请重新输入!";
if($mobile.substring(0,2) != "13")
{
echo "您录入的手机号码有误!";
}
}
else
{
echo "OK";
}
}
$mobilee = 13521075923;
myfun($mobilee);
?>