Commit c3c6e1ac authored by houdong's avatar houdong

手机号校验

parent 5c41c65e
...@@ -149,7 +149,7 @@ ...@@ -149,7 +149,7 @@
$mobile = trim($mobile); $mobile = trim($mobile);
//if ( strlen($mobile) !=11 ||!@preg_match("/^1(3[0-9]|5[0-9]|8[0-9]|4[57]|7[0678])\d{8}$/",$mobile) ) //if ( strlen($mobile) !=11 ||!@preg_match("/^1(3[0-9]|5[0-9]|8[0-9]|4[57]|7[0678])\d{8}$/",$mobile) )
if ( strlen($mobile) !=11 ||!@preg_match("/^1(3[0-9]|4[0-9]|5[0-9]|6[0-9]|7[0-9]|8[0-9]|9[0-9])\d{8}$/",$mobile) ) if ( strlen($mobile) !=11 ||!@preg_match("/^1(2[0-9]|3[0-9]|4[0-9]|5[0-9]|6[0-9]|7[0-9]|8[0-9]|9[0-9])\d{8}$/",$mobile) )
{ {
return false; return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment