mysql数据库保存微信emoji表情
/* * 过滤表情* */public function parseEmojiTounicode($stremoji){$text = preg_replace_callback('/[\xf0-\xf7].{3}/', function($r) {return '@E' . base64_encode($r[0]);}, $stremoji);return $text;}/** 解析表情* */public function parseHtmlemoji ($text){$text_r = preg_replace_callback('/@E(.{6}==)/', function($r) {return base64_decode($r[1]);}, $text);return $text_r;}