PHP UTF-8 String Length | hakre on wordpress
If you've got an UTF-8 encoded PHP string (e.g. when working with DOMDocument) and you don't want to rely on the mbstring extension to get it's length, this can be solved with a simple regular expression (as the string does not need to be validated): If t...