Emoji

Emojis are small digital images or icons used to express ideas, emotions, objects, or concepts in electronic communication. The word emoji comes from Japanese, combining e, picture and moji, character or letter.

<?php

    // Emoji, directly in the string, when the file is also supporting Unicode, like with UTF8
    echo "Hello 😊";

    // Emoji, with a PHP escape sequence
    echo "\u{1F60A}";

    // Emoji, with an HTML escape sequence
    echo "&#128522;";

?>

Documentation

See also Emoji list and Where you can (and can’t) use Emoji in PHP.

Related : Escape Sequences, UTF-8, Unicode