/**
* 隐藏手机号hide mobile like 138****5493
* @param [type] $mobile [description]
* @return [type] [description]
*/
function hideMobile($mobile){
$pattern = "/(1\d{1,2})\d\d(\d{0,3})/";
$replacement = "\$1****\$3";
return preg_replace($pattern, $replacement, $mobile);
}
如果文章或资源对您有帮助,欢迎打赏作者。一路走来,感谢有您!
txttool.com 说一段 esp56物联 查询128 IP查询