单词比较和替换
我需要一些 PHP 中的比较和替换代码
我们的使命是让消费者能够 当他们收到时赞扬良好的服务 并在任何地方报告不良服务 他们必须忍受它。
我需要这一段来比较某些单词(例如 Mission、Good )并像这样替换该单词 m*****n 和 G**d
所以结果将是这样的
我们的目标是让消费者能够 当他们收到时赞美上帝的服务 并在任何地方报告不良服务 他们必须忍受它。
我怎样才能在 PHP 中做到这一点?
请分享您的想法和代码(如果有)。
谢谢
I need some comparing and replacing code in PHP
Our mission is to empower consumers to
Praise Good Service when they receive
it and to Report Poor Service wherever
they have to endure it.
I need this paragraph to xcompare for some words (for example mission, Good ) and replace that word like this m*****n and G**d
So the result will be like this
Our m*****n is to empower consumers to
Praise G**d Service when they receive
it and to Report Poor Service wherever
they have to endure it.
How can i do this in PHP?
Please share your ideas and code if any.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
试试这个,
Try this ,
这会将整个单词替换为星星......
This would replace the whole word with stars...