protected function checkphone(){ if(preg_match("/^1[34578]\d{9}$/", $phone)){ return false; }else{ return true; } }
php正则验证手机号码
原文:http://www.cnblogs.com/zlx7/p/5212597.html