/**
* 过滤上传特殊表情符号的
* @param $str
* @return mixed
*/
private function filter_emoji($str)
{
preg_match_all('/[\x{4e00}-\x{9fff}\d\w\s[:punct:]]+/u',$str,$result);
return join('',$result[0]);
}
php过滤特殊表情符号(亲测可用)
猜你喜欢
转载自blog.csdn.net/qq_41741884/article/details/104433137
今日推荐
周排行