For example, I have
$string="\xF0\x9F\x91\x8E\xF0\x9F\x91\x8E\xF0\x9F\x91\x8E";
//three thumbs-up emoji
How to find out what Emojis were accepted and separate them?
For example, I have
$string="\xF0\x9F\x91\x8E\xF0\x9F\x91\x8E\xF0\x9F\x91\x8E";
//three thumbs-up emoji
How to find out what Emojis were accepted and separate them?
I have used emoji-detector-php and it is very helpful and easy to use.
From the DOCS:
$input = "Hello World ";
$emoji = Emoji\detect_emoji($input);
print_r($emoji);