views:

38

answers:

1

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? 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?
A: 

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

Stefan Gehrig