Emoji for PHP
This library allows the handling and conversion of Emoji in PHP.
For background, you might want to read this first.
You can download a zipfile of the latest code, which contains a helpful readme file.
If you want to browse the code, it's in a public GitHub repo.
<?php include('emoji.php'); # browser sniffing tells us that a docomo phone # submitted this text $clean_text = emoji_docomo_to_unified($_POST[message]); ... # now we want to show it in a desktop browser $html = emoji_unified_to_html($clean_text);