正则匹配手机号码
function preg_mobile($str){
preg_match('/(13[0-9]|14[0-9]|15[0-9]|16[0-9]|17[0-9]|18[0-9]|19[0-9])\d{8}/', $str, $matches);
return empty($matches) ? '' : $matches[0];
}
正则大全:any86.github.io/any-rule/