mb_substr和substr之间的区别 [英] Difference between mb_substr and substr

查看:184
本文介绍了mb_substr和substr之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我使用substr()而不是mb_substr()函数,它将对我的结果产生任何影响或影响?

Will it make any difference or impact on my result, if I use substr() instead of mb_substr() function?

由于我的服务器不支持mb_函数,因此我必须将其替换为substr()

As my server does not have support for mb_ functions, I have to replace it with substr()

推荐答案

如果您使用从中进行子字符串处理的多字节文本,它将影响您的脚本.如果是这种情况,我建议您在php.ini中启用mb_ *功能,或者执行ini_set("mbstring.func_overload", 2);

It will impact your script if you work with multi-byte text that you substring from. If this is the case, I higly recommend enabling mb_* functions in your php.ini or do this ini_set("mbstring.func_overload", 2);

这篇关于mb_substr和substr之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆