utf-8 编码问题

使用下面直接进行处理
$str = preg_replace('/[\x{10000}-\x{10FFFF}]/u', '', $str);
posted @ 2019-02-20 13:25  天道酬勤,坚持!  阅读(374)  评论(0编辑  收藏  举报