Can str_replace be safely used on a UTF-8 encoded string if it's only given valid UTF-8 encoded strings as arguments?

前端 未结 5 1504
孤街浪徒
孤街浪徒 2020-12-11 00:40

PHP\'s str_replace() was intended only for ANSI strings and as such can mangle UTF-8 strings. However, given that it\'s binary-safe would it work properly if it

5条回答
提交回复
热议问题