php验证手机号码
时间:2014-03-29 13:34:57
收藏:0
阅读:568
1 function is_telephone($phone){ 2 $chars = "/^13[0-9]{1}[0-9]{8}$|15[0-9]{1}[0-9]{8}$|18[0-9]{1}[0-9]{8}$/"; 3 if (preg_match($chars, $phone)){ 4 return true; 5 } 6 }
原文:http://www.cnblogs.com/thekingofreturn/p/3632205.html
评论(0)
