For example:
the width of "English" = 7
the width of "中文" = 4
Is there a way to get the "width" of a string?
Update:
I know that in the UTF-8 encoding,
strlen("English") = 7
strlen("中文") = 6
mb_strlen("English") = 7
mb_strlen("中文") = 2
I want the result of some function("中文") to be 4 . You see, the width of these two strings are equal:
word
中文