PHP string functions vs mbstring functions
问题 I have an application that has so far been in English only. Content encoding throughout templates and database has been UTF-8. I am now looking to internationalize/translate the application into languages that have character sets absolutely needing UTF-8. The application uses various PHP string functions such as strlen() , strpos() , substr() , etc, and my understanding is that I should switch these for multi-byte string functions such as mb_strlen() , mb_strlen() , mb_substr() , etc, in