Convert 8 bytes to a signed long (64 bit)

Hackel

New Member
I'm reading 8 bytes from a socket in PHP, and want to transform them into a 64 bit signed integer.
  • How can I do this in 64 bit PHP? \[code\]unpack\[/code\] 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?
 
Back
Top