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

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

WBOY
WBOYOriginal
2016-06-13 12:13:02924browse

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 />


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

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

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