Why is the bitwise operation of the unsigned long integer in PHP5.2.6 ?? RT! PHPcode $ v = time (); $ para = (int) 5566778899; $ v = $ v ^ $ para; echo & quot; time: & quot ;. $ v. & quot; & lt; br & gt; & quot; description: I want to ask for the bitwise operation of the unsigned long integer in PHP5.2.6 ??
RT!
PHP code
$ V = time (); $ para = (int) 5566778899; $ v = $ v ^ $ para; echo "time:". $ v ."
";
Description: I want to obtain the number of seconds from the Greenwich mean time, and then perform an exclusive or bitwise operation with a number (eg: 5566778899. However, a negative number is returned, and the information on the Internet is linked to the IP address.
What should I do if I want to implement this function ?? Thank you!
------ Solution --------------------
$ V = $ v ^ $ para ^-1;
------ Solution --------------------
Gmp_xor
------ Solution --------------------
This way
PHP code
Echo sprintf ("% u",-639610008 );