public static function commentFilter($content) { $keywords = ImKeywords::getList();//关键字库 foreach ($keywords as $keyword) { if (strstr($content, $keyword['keyword'])) { return false; } } return true; }
关键字过滤示例
猜你喜欢
转载自blog.csdn.net/alashan007/article/details/80814748
今日推荐
周排行