function filter_emoji_string($str){
$str = trim($str);
$str = preg_replace_callback('/./u',function (array $match) {return strlen($match[0]) >= 4 ? '' : $match[0];},$str);
return $str;
}
2022-12-01 13:43:43
function filter_emoji_string($str){
$str = trim($str);
$str = preg_replace_callback('/./u',function (array $match) {return strlen($match[0]) >= 4 ? '' : $match[0];},$str);
return $str;
}