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

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

WBOY
Release: 2016-06-06 20:33:13
Original
981 people have browsed it

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

回复内容:

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

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template