有没有更好的方法来完成下面这个简单的任务?喜欢数组还是其他方法?这是我当前的功能functionFilterALLHTML($document){//oldarrayline//"']*//?//>'si",//striphtml$text=strip_tags($document);$search=array("/f.?u.?c.?k/i","/(s|$).?h.?i.?t/i",'/(potspace|mycrib|palbolt)/i');$text=preg_replace($search,'',$text);return$text;}更新-好的我的新功能在这篇文章的建议之后谢