Byte Range Value
------------------ -----------------------------------------------
0 - 3 32-bit unsigned integer - call it numBytes
4 - (numBytes + 4) char array - The actual data, total of numBytes
如何将前四个字节作为整数读取?我唯一能想到的就是
shmop_read($key, 0, 4)
并将返回的字符串值转换为数组,然后按说明将该数组转换为整数
here
这一切看起来都很混乱,我想知道是否有一种更干净的方法可以做到这一点?