Home >Backend Development >PHP Tutorial > 如何替换一个字符串中间的字符

如何替换一个字符串中间的字符

WBOY
WBOYOriginal
2016-06-13 12:45:031495browse

怎么替换一个字符串中间的字符
怎么替换一个字符串中间的字符?
比如: fdsfdsfdsjkww
替换成:f**********w
比如: 扣分金锡民
替换成:扣***民
比如: 扣分金锡民s
替换成:扣****s
比如: tt扣分金锡民s
替换成:t*****s

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn