~~~ // 将手机号中间4位加密 function encPhone($phone, $replace = '****') { return str_replace(substr($phone, 3, 4), $replace, $phone); } ~~~