Home  >  Article  >  Backend Development  >  这种被编码后的违法信息如何过滤

这种被编码后的违法信息如何过滤

WBOY
WBOYOriginal
2016-06-06 20:33:13920browse

这种被编码后的违法信息如何过滤
办假证 复制带文件里都变成空格了 求教怎么过滤

回复内容:

这种被编码后的违法信息如何过滤
办假证 复制带文件里都变成空格了 求教怎么过滤

自己解决了。preg_replace("/[^\x{4e00}-\x{9fa5}]/iu",'',$val);通过正则把所有的干扰字符都去除了。去除后再去检索关键词。

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