Home >Backend Development >PHP Tutorial >请教这句是不是这个意思

请教这句是不是这个意思

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 12:05:44757browse

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

本帖最后由 eiysxd 于 2014-08-30 13:42:12 编辑 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