Home >Backend Development >PHP Tutorial >一个很简单的字符串切分有关问题

一个很简单的字符串切分有关问题

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 10:14:09908browse

一个很简单的字符串切分问题
[email protected]
[email protected]

[email protected] “*”

------解决方案--------------------

PHP code
$str = [email protected]';echo preg_replace('/.{4}@/', '****@', $str);[email protected]<div class="clear">
                 
              
              
        
            </div>
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