Quote:
Originally Posted by Gunderak
How would you get the binary of a string in GS2 O.o
I'm not really a math expert.
I sort of understand what you mean.
|
Not sure if there is a default function however I only showed binary to kinda explain how an xor works.. you can ofcourse use variables..
PHP Code:
// HEX
temp.test = 0xF0 xor 0XFF;
echo(temp.test); // 00001111
// String
temp.test = a xor b;
echo(temp.test); // 00000011
It's obviously not gonna output in binary.. uhm.. output it as an int.. and do dec to binary .. using calc
Play around with it a bit, see if you can make sense of the input/output.. post back here if u have more questins..
glad to help.