There are multibyte string functions in PHP to handle multibyte string (e.g:CJK script). For example, I want to count how many letters in a multi bytes string by using len
function in python, but it return an inaccurate result (i.e number of bytes in this string)
japanese = "桜の花びらたち"
print japanese
print len(japanese)#return 21 instead of 7
Is there any package or function like mb_strlen in PHP?