php 微信 emoji
发布时间:2020-12-14 19:42:50 所属栏目:资源 来源:网络整理
导读:过滤掉 emoji 表情 function filterEmoji($str) { $str = preg_replace_callback( '/./u',function (array $match) { return strlen($match[0]) = 4 ? '' : $match[0]; },$str); return $str; } 在 json_decode 之前 preg_replace('/[x00-x1Fx80-x9F]/u'
|