微信昵称特殊字符串过滤,只需一段简单代码:

$nickName = preg_replace('/[\xf0-\xf7].{3}/', '', $nickName);

 

相关文章: