I'm building an API for a mobile application and I seem to have a problem with counting the length of a string containing emojis. My code:
$str = "
I'm building an API for a mobile application and I seem to have a problem with counting the length of a string containing emojis. My code:
$str = "
Your functions are all counting different things.
Graphemes: