Why are PHP string functions not multi-byte safe by default?

点点圈 提交于 2019-12-01 07:31:27

问题


Why are the PHP multi-byte string functions (the ones which start with mb_) not used by default in PHP?


回答1:


Backwards compatibility. Old PHP scripts depend on non-multibyte functionality.

See also: http://www.php.net/manual/en/mbstring.overload.php




回答2:


Because non-multibyte functions were there first.



来源:https://stackoverflow.com/questions/12716064/why-are-php-string-functions-not-multi-byte-safe-by-default

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!