php 敏感词汇匹配

 public function banwordCheck($con){
        $file = $_SERVER['DOCUMENT_ROOT'].'/public/minganci.txt';;  //换成你本地的敏感词汇文件
        $words = file_get_contents( $file );
        $fuckArr = explode('|',$words);
        for($i=0;$i

你可能感兴趣的:(php 敏感词汇匹配)