4

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?
Bart van Heukelom
  • 43,244
  • 59
  • 186
  • 301
  • possible duplicate of [Converting byte-stream into numeric data-type](http://stackoverflow.com/questions/726092/converting-byte-stream-into-numeric-data-type) – Stefan Gehrig Oct 05 '10 at 15:31

1 Answers1

0

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

Community
  • 1
  • 1
Stefan Gehrig
  • 82,642
  • 24
  • 155
  • 189