Home  >  Article  >  Backend Development  >   属于什么部类?应该用什么函数进行过滤

 属于什么部类?应该用什么函数进行过滤

WBOY
WBOYOriginal
2016-06-13 10:56:47716browse

 属于什么类型?应该用什么函数进行过滤、
strip_tags的话只能过滤html的标签,我想把 等这些转义字符给过滤掉,有这样的函数吗??

------解决方案--------------------
那个函数不会转化   

PHP code
$str = "&"<> "; echo preg_replace('/ /','',$str);<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
Previous article:PHP5.4没法开启GD库Next article:php资料操作相关函数