utilphp
utilphp copied to clipboard
Use mb_* functions
I am wandering whether it would be good to use multi-byte string functions by default or have a wrapper for both e.g. strlen and mb_strlen?
Can you provide statistics on how common mb_string is deployed?
How would one be able to calculate this?
If you install any Linux they are not part of the php-common package and must be installed manually
Maybe you can check if they exist and use them if they are present
There is a library that makes a polyfill of mb_* https://github.com/voku/portable-utf8