Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 873
Zulakis Avatar asked Sep 06 '25 03:09

Zulakis


1 Answers

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

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

like image 125
Frank Farmer Avatar answered Sep 07 '25 17:09

Frank Farmer