View Single Post
  #6  
Old 12-19-2012, 06:01 PM
scriptless scriptless is offline
Banned
Join Date: Dec 2008
Location: N-Pulse
Posts: 1,412
scriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to behold
Quote:
Originally Posted by Gunderak View Post
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 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.
Reply With Quote