输入banner图图片脚本导航/分类

php中怎样将1变成一个字节的Integer类型啊?

pack函数怎么用啊?


回复讨论(解决方案)

prck('c', 1) 单字节有符号整数
prck('C', 1) 单字节无符号整数

与 chr(1) 等价