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

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 10:14:09
Original
923 people have browsed it

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

[email protected] “*”

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

PHP code
$str = [email protected]';echo preg_replace('/.{4}@/', '****@', $str);[email protected]<div class="clear">
                 
              
              
        
            </div>
Copy after login
Related labels:
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template