这段代码在 stackoverflow 上搜到, 据说是 Smarty 用的.
function smarty_modifier_emojistrip($string) { return preg_replace('/\xEE[\x80-\xBF][\x80-\xBF]|\xEF[\x81-\x83][\x80-\xBF]/', '', $string); }
这段代码在 stackoverflow 上搜到, 据说是 Smarty 用的.
function smarty_modifier_emojistrip($string) { return preg_replace('/\xEE[\x80-\xBF][\x80-\xBF]|\xEF[\x81-\x83][\x80-\xBF]/', '', $string); }
https://github.com/iamcal/php-emoji/blob/master/lib/emoji.php Reply