The PHP bitwise inversion problem now has a string of numbers, $ str = 1300022332121 requires bitwise inversion. how can we get this bitwise inversion, which is opposite to the bitwise inversion of other programs, is there a difference, because I want to pass it to a program written in C ++. ask everyone to teach, PHPcode $ str = 1300022332121; echo ~ $ St PHP bitwise inversion problem
There is a string of numbers,
$ Str = 1300022332121
How do I obtain the bitwise result?
Is this bitwise inversion different from the bitwise inversion of other programs?
Because I want to pass it to a program written in C ++,
Thank you!
------ Solution --------------------
PHP code
$ Str = 1300022332121; echo ~ $ Str; // 2147483647
------ Solution --------------------
Not that simple
What is your C ++ requirement?
1300022332121 has exceeded the unsigned long value range.