Home  >  Article  >  Backend Development  >  请问这句是不是这个意思?

请问这句是不是这个意思?

WBOY
WBOYOriginal
2016-06-23 13:50:30840browse

trim(str_replace(array('
', ' '), array('', ''), strip_tags($message)));

strip_tags 从字符串中取出html和php标记,然后在字符串中查找
和 ,把它替换成空‘’?


回复讨论(解决方案)

错了,

strip_tags 从字符串过滤html、php、link、script标记,然后在字符串中查找
和 ,把它替换成  逗号

这句的本意是 删去(替换成空字符串就是删除)
 和  
但是 strip_tags($message) 中并不会包含 

所以只是删去  

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