php-emoji 介绍
PHP-emoji 是 PHP 程序用来处理和转换 Emoji 表情的库。
使用方法:
<?PHP include('emoji.PHP'); # when you recieve text from a mobile device, convert it # to the unified format. $data = emoji_docomo_to_unified($data); # DoCoMo devices $data = emoji_kddi_to_unified($data); # KDDI & Au devices $data = emoji_softbank_to_unified($data); # Softbank & pre-iOS6 Apple devices $data = emoji_google_to_unified($data); # Google Android devices # when sending data back to mobile devices, you can # convert back to their native format. $data = emoji_unified_docomo($data); # DoCoMo devices $data = emoji_unified_kddi($data); # KDDI & Au devices $data = emoji_unified_softbank($data); # Softbank & pre-iOS6 Apple devices $data = emoji_unified_google($data); # Google Android devices # when displaying data to anyone else, you can use HTML # to format the emoji. $data = emoji_unified_to_html($data); # if you want to use an editor(i.e:wysiwyg) to create the content, # you can use html_to_unified to store the unified value. $data = emoji_html_to_unified(emoji_unified_to_html($data)); ?>
php-emoji 官网
https://github.com/iamcal/php-emoji
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。