开发者

Convert 8 bytes to a signed long (64 bit)

I'm reading 8 bytes from a socket i开发者_如何学编程n PHP, and want to transform them into a 64 bit signed integer.

  • How can I do this in 64 bit PHP? unpack doesn't support 64 bit numbers
  • In 32 bit PHP, is there a way to make it into a string that can be used by BCMath?


Perhaps Converting byte-stream into numeric data-type will help...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜