Home > Backend Development > PHP Tutorial > php如何过滤掉智能ABC打出来的V11

php如何过滤掉智能ABC打出来的V11

WBOY
Release: 2016-06-13 12:13:02
Original
989 people have browsed it

php怎么过滤掉智能ABC打出来的V11
就是空格,这个空格识别不了,ctype_space和preg_replace('/\s\s+/','',$nick)==''都不行,就是全部是那种空白不允许写入数据库。

------解决思路----------------------
只能ABC v11 打出来的是全角空格
------解决思路----------------------

<br />$nick = preg_replace('/\s<br><font color='#FF8000'>------解决思路----------------------</font><br> /', '', $nick);<br />
Copy after login


是打了智能abc的v11进去正则的。

<br />$a = ' ';<br />$b = ' ';<br /><br />echo base64_encode($a).'<br>'; // 44CA<br />echo base64_encode($b); // IA==<br />
Copy after login

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