84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
由于网站被人用恶意字符,进行了文章翻转,原因是由于使用了RLO特效字符 Unicode码: U+202E知乎的详细说明:https://www.zhihu.com/questio...
问题是PHP如何过滤这种字符?
欢迎选择我的课程,让我们一起见证您的进步~~
我以前好像碰到过这个,感觉像是Bom
$text = $POST['text']; //$text为存放文本的变量 if(false === filter_var($text, FILTER_FLAG_ENCODE_AMP)){ //错误处理,并退出 } //这里写通过校验的逻辑 // …………
$input = preg_replace('/\x{202e}/u', '', $input);
还要处理其他字符……
我以前好像碰到过这个,感觉像是Bom
还要处理其他字符……