$badword = array( '张三','张三丰','张三丰田' ); $badword1 = array_combine($badword,array_fill(0,count($badword),'*')); $bb = '我今天开着张三丰田上班'; $str = strtr($bb, $badword1); echo $str;
Powered by: 博客园 Copyright © 2024 陈达辉 Powered by .NET 8.0 on Kubernetes