3 ms·
He's right though, PHP has no reliable way to obtain the length of a string in characters, unless you keep track of which character set a string is in and caref
by Joeri 14y ago
He's right though, PHP has no reliable way to obtain the length of a string in characters, unless you keep track of which character set a string is in and carefully manipulate the mbstring functions.
Doing multibyte string handling properly in PHP is way harder than it should have been.
- sambeau 14y agoI spat my coffee out laughing. Because he is so right.