同意词替换$content=file_get_contents(ROOT_PATH.'includes'.'/strtr_words/words.txt');//词库if(is_gb2312($content)){$content=iconv('GBK','UTF-8',$content);}$content=str_replace("\r","",$content);//去掉换行符(以便兼容Linux主机)$content=preg_split(