$val = 538759009 ^ 0xAABBCCDD;
print "val=" . $val;
= 2326201276 (version 4.4)
and
= -1968766020 (version 4.3)
I want the behavior of version 4.4, but I'm not quite sure what it is doing differently than in version 4.3. Any ideas?
Thanks in advance!
Moderator: General Moderators
Code: Select all
val=-1968766020Weird... any ideas why 4.4 might differ? Also is there an equivalent of the C++ function atol() in PHP? I wonder if 4.4 is taking the ASCII value of 538759009.anjanesh wrote:PHP 5.0.3Code: Select all
val=-1968766020
http://us3.php.net/manual/en/language.t ... ggling.phpbrettsg wrote:Also is there an equivalent of the C++ function atol() in PHP?
I tried:jshpro2 wrote:http://us3.php.net/manual/en/language.t ... ggling.phpbrettsg wrote:Also is there an equivalent of the C++ function atol() in PHP?
Scroll down to type casting