I have two 32-bit unsigned integers in php (the result of crc32() ) and I want to get the bitwise result of these numbers on a 32 bit version of php.
I have tried many experiments, but evidently there is something I am missing about how php handles these numbers and binary data.
Update:
I am looking for something like this:
$x = crc32("abc");
$bin = sprintf("%b", $x);
$x2 = crc32("abc2");
$bin2 = sprintf("%b", $x2);
$b = $bin | $bin2;
$result = sprintf("%u",$b);
var_dump($result);
That code does not work, but by replacing %b and %u with the right numbers I think it could work