I came across this line of code in an application I am revising:
substr($sometext1 ^ $sometext2, 0, 512);
What does the ^ mean
^
XOR (exclusive OR):
$a ^ $b means bits that are set in $a or $b, but not both, are set.