if(preg_match("/^13[0-9]{1}[0-9]{8}$|15[0189]{1}[0-9]{8}$|189[0-9]{8}$/",$mobilephone)){ //验证通过 }else{ //手机号码格式不对 }//该片段来自于http://www.codesnippet.cn/detail/270520133569.html
来源: http://www.codesnippet.cn/detail/270520133569.html