奶罩那里写到 还有一件让我很遗憾的事情: Zeev在演讲的时候,提到有关PHP支持Unicode的事情,大屏幕上的代码是如下样子: ... $jp = "中文"; //Unicode echo strlen($jp); //result is 2 俺觉得结果是4,结果在PHP4和5下打印出来的结果都是4.
还有一件让我很遗憾的事情: Zeev在演讲的时候,提到有关PHP支持Unicode的事情,大屏幕上的代码是如下样子: ... $jp = "中文"; //Unicode echo strlen($jp); //result is 2 俺觉得结果是4,结果在PHP4和5下打印出来的结果都是4.
到底应该是几啊?俺连php菜鸟都不是…不知道咋回事…
UTF8是6,因为中文占3字节。
奶罩 unicode_semantics=on
难道我的是php6
UTF-8是6
我得到的是6
Your email address will not be published. Required fields are marked *
Name *
Email *
Website
Comment
You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Notify me of follow-up comments via e-mail
UTF8是6,因为中文占3字节。
奶罩
unicode_semantics=on
UTF-8是6
我得到的是6