Stephen,
sorry, i have not worked with logical operators for over 3 years :-)
Anyway, here is a code that will give you your result (though not is the most ideal form)... but you can fix it :-)
<?php
$BlockA = "10100100101010100111";
$BlockB = "11010011101101011010";
$out = ($BlockA ^ $Block😎;
for($i = 0; $i < strlen($out); $i++) {
if($i != 0) {
echo " ";
}
echo bin2hex($out[$i]);
}
?>
Basically, I used bin2hex to convert each bit of the output to a string byte and echoed it. It echoes either 00 or 01 depending on what it evaluates to.
You can take this and create a function out of it and after you run bin2hex, just remove the starting 0 and output the string.
-sridhar