Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Difference of & in perl and php
March 3, 2006, 4:41 pm
rate this thread
I'm porting a program from php to perl and discovered, that the bitwise
operator & seems to work differently, which I don't understand why.
I tested it with the values:
a=5543039447 and b=13
Then in perl the expressions:
$result= ($z & $a);
But in php the same expression returns zero. Why is that and how can I
- » Accessing constant and static members of a class name held in a variable
- — Previous thread in » PHP Scripting Forum