对 utf-8 要转成 gbk 的才可以和 asp 中的一致
只对gbk编码有效!echo asc('中'); function asc($s) { if(ord($s) < 128) return ord($s); return current(unpack('N', "\xff\xff$s")); } -10544
echo asc('中'); function asc($s) { if(ord($s) < 128) return ord($s); return current(unpack('N', "\xff\xff$s")); }
ASC() ANSI 字符代码
21,886
社区成员
140,364
社区内容
加载中
试试用AI创作助手写篇文章吧