首页 > 编程 > PHP > 正文

PHP中利用substr_replace将指定两位置之间的字符替换为*号

2019-11-22 01:03:06
字体:
来源:转载
供稿:网友
复制代码 代码如下:

$username = "zongzi";
echo substr_replace($username,'**','1','2');
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表