Quote:
Originally Posted by jake13jake
*wants his xor operator back* :-(
I'd even be willing to write the program that would convert everyone's nw files and scripts from
a^b to pow(a,b),
a^=b to a=pow(a,b)
and,
a xor b to a^b
|
How I use Xor, is this >_>
PHP Code:
function onCreated() {
var1 = "foo";
var2 = "bar";
echo(var1 xor var2 ? 1 : 0); // would return true
}
/*
True = Not alike
False = Alike
*/