The content of this article is about the implementation code of emoji transcoding display in PHP. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.
preg_match_all('/\[\[EMOJI:(.*?)\]\]/',$data['content'],$arr_content);//过滤掉emoji表情 foreach($arr_content[0] as $k=>$v){ $emoji = str2emoji($v); $data['content'] = str_replace($v,$emoji,$data['content']); }
Related recommendations:
Solutions to using emoji expressions in php projects
##php parsing emoji expressions supports WeChat
The above is the detailed content of Implementation code for emoji transcoding display in php. For more information, please follow other related articles on the PHP Chinese website!