php去掉emoji表情
作者: thtomatic 分类: php笔记 评论: [ 0 ] 条 浏览: [ 1008 ] 次
function filterEmoji($str) { $str = preg_replace_callback( '/./u', function (array $match) { return strlen($match[0]) >= 4 ? '' : $match[0]; }, $str); return $str; }
版权所有:《thtomatic》 => 《php去掉emoji表情》
本文地址:https://ask.mykeji.net/phpnotes/204.html
除非注明,文章均为 《简单记录》 原创,欢迎转载!转载请注明本文地址,谢谢。
发表评论: