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...
精彩评论