Thread: Square root
View Single Post
  #16  
Old 12-02-2006, 03:44 AM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
Quote:
Originally Posted by Chompy View Post
How I use Xor, is this >_>

PHP Code:
function onCreated() {
 
var1 "foo";
 
var2 "bar";
 echo(
var1 xor var2 0); // would return true
}
/*
   True  = Not alike
   False = Alike
*/ 
Quote:
Originally Posted by ApothiX View Post
X_x.. Why are you using xor on strings? That's not how it works :x
Might as well be doing be doing "f" xor "b" considering I believe binary operators compare only one binary value (that is, the first binary value per argument)... Not that that piece of code is of any use to anyone (see Okie's post). "f" xor "b" is char(6), whatever that is. char(6) has an ASCII of 6 which is not 0, thus is true...
__________________
◕‿‿◕ · pfa · check yer syntax! · src

Killa Be: when i got that locker in 6th grade the only thing in it was a picture of a midget useing a firehose :/
Reply With Quote