简体   繁体   中英

how to combine two unsigned 32bit integers to 64bit integer in php?

I have two unsigned 32 bit integers that I need to combine to make one long integer or a string it does not matter if it is in string format as long as I have the number. for example:

low: -589298671

high: 4

thanks!

I ended up finding a solution in this article .

it has solved my problem perfectly also will work on any system. it's a great piece of code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM