Computer Science Canada PHP doesn't recognize x^y? |
Author: | Amailer [ Wed Jan 24, 2007 2:49 pm ] |
Post subject: | PHP doesn't recognize x^y? |
I always thought to raise a number to a power of another you could simply do x^y, but that doesn't work in PHP (anymore I think..), I have to do pow(x,y) oO, is this normal or is something wrong with my php? All the other operations work, + * / - Or am I just speaking non-sense and ^ was never recognized :/ |
Author: | zylum [ Wed Jan 24, 2007 3:15 pm ] |
Post subject: | RE:PHP doesn\'t recognize x^y? |
in java and c, the ^ operator is xor, maybe the same applies to php? |