public function filterContent($content) { $content = strtolower($content); $content = trim($content); $data = ['test', '测试']; if (in_array($content, $data)) { return false; } $action = ['+1', '赞', '很赞', '喜欢', '收藏', 'mark', '写的不错', '不错', '给力']; if (in_array($content, $action)) { return false; } return true; }