限时免费试用:欢迎注册 api.bigmodel.org ,快速体验大模型 API 接入服务。

PHP基础

手机号中间4位用星号替换

// 手机号中间4位用星号替换 function tel_xx($tel="00000000000"){ $res = substr_replace($tel, '****', 3, 4); return $res; }

作者
王明昌
发布时间
// 手机号中间4位用星号替换
function tel_xx($tel="00000000000"){
   $res = substr_replace($tel, '****', 3, 4);
   return $res;
}
0/500
友善分享您的看法。
反馈邮箱