In PHP, there are multibyte string functions for processing a multibyte string (for example: CJK script). For example, I want to calculate how many letters in a multibyte string are used with a function lenin python, but it returns an inaccurate result (i.e. the number of bytes in this string)
japanese = "桜の花びらたち"
print japanese
print len(japanese)
Is there any package or function like mb_strlen in PHP?
source
share