0

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?

Panda
  • 6,955
  • 6
  • 40
  • 55

1 Answers1

0

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);
Rakesh
  • 81,458
  • 17
  • 76
  • 113