PHP string functions vs mbstring functions

前端 未结 3 1921
余生分开走
余生分开走 2021-01-22 04:51

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

3条回答
  •  孤独总比滥情好
    2021-01-22 05:42

    Check the status of the mbstring.func_overload flag in php.ini

    If (ini_get('mbstring.func_overload') & 2) then functions like strlen() (as listed here) are already overloaded by the mb_strlen() function, so there is no need for you to call the mb_* functions explicitly.

提交回复
热议问题