Home >Backend Development >PHP Tutorial > 敏感语汇过滤

敏感语汇过滤

WBOY
WBOYOriginal
2016-06-13 12:31:351051browse

敏感词汇过滤
假如用户输入了 

$str="输入内容123";

下了个abc.txt,内容为,大概一千条
坏蛋|1<br />
火枪|1<br />
超级大坏蛋|1<br />
....


如何用这个txt文件检查过滤$str1;要效率,求支招

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn