function changeNum($string){
$pattern = “/(1\d{2})\d{4}(\d{4})/”;
$replacement = “\$1****\$2”;
return preg_replace($pattern,$replacement,$string);
}
function changeNum($string){
$pattern = “/(1\d{2})\d{4}(\d{4})/”;
$replacement = “\$1****\$2”;
return preg_replace($pattern,$replacement,$string);
}
关注微信公众号『PHP学习网』
第一时间了解最新网络动态
关注博主不迷路~