PHP: Combine Two 16-bit Integers into a 32-bit integer

Posted by Goro on Stack Overflow See other posts from Stack Overflow or by Goro
Published on 2010-06-17T22:06:24Z Indexed on 2010/06/17 22:13 UTC
Read the original article Hit count: 260

Filed under:
|

Hello,

I am trying to combine two integers in my application. By combine I mean stick one byte stream at the end of the other, not concatenate the strings.

The two integers are passed from hardware that can't pass a 32 bit value directly, but passes two consecutive 16-bit values separately.

Thanks,

© Stack Overflow or respective owner

Related posts about php

Related posts about bit-manipulation