Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我很高兴在我的应用程序中使用所有多字节字符串函数,但是当使用外部库时,查找和替换它们会很痛苦。
鉴于我可以控制外部输入以便只存在 UTF-8 数据,因此比较两种不同编码类型所产生的问题不会成为问题(即str_replace原样没问题)。
str_replace
那么我需要用mb_*等价替换哪些字符串函数?
mb_*
到目前为止,我确定我需要更换
还有其他人吗?
或者,使用重载是一个可行的选择,还是这可能会导致问题?