如何在这里添加原生表情符号? 因为我的php聊天不会识别它们: 在聊天框中,当我发送表情符号时,我得到了这个:????
$mod_text = preg_replace( '/(http|https|ftp|ftps)\:\/\/[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,8}(\/*\S*)/' , "<span class=\"link-object\"><a class=\"dont-react\" href=\"$0\" target=\"_blank\">$0</a></span>" , escaper_html( $chat['text'] ) );
$array = array(
'id' => $chat['id'],
'time' => $chat['sendtime'],
'img' => $chat['img_medium'],
'img_big' => $chat['img_big'],
'text' => $mod_text,
'sticker' => $chat['sticker']?true:false,
'sticker_format' => $chat['sticker']?get_sticker_pack( $chat['sticker_pack'] )['format']:'',
'sticker_pack' => $chat['sticker_pack'],
'sticker_index' => $chat['sticker_index']
);