Oops, no-perator found. Have a joke instead.
arithmetic
bitwise
$a ^ $b
Binary xor
Binary "xor" operation.
Tags
Related
{
selectOperator(operator.slug);
search = '';
}">
{
selectOperator(operator.slug);
search = '';
}" href="/operators/binary-xor-assignment">$a ^= $b {
selectOperator(operator.slug);
search = '';
}" href="/operators/binary-and">$a & $b {
selectOperator(operator.slug);
search = '';
}" href="/operators/binary-or">$a | $b {
selectOperator(operator.slug);
search = '';
}" href="/operators/binary-not">~$a
$a = 0b01;
$b = 0b01;
$c = 0b10;
$d = 0b11;
var_dump($a ^ $b); // 0b00, 0
var_dump($b ^ $c); // 0b11, 3
var_dump($a ^ $d); // 0b10, 2
var_dump($c ^ $d); // 0b01, 1
null coalescing
comparison
logical
strings
What is this? Who are you!?
PHP Operators is a reference guide for operators old and new in the PHP programming language. We're SPATIE, a web development agency from Belgium. Besides client work we like to contribute to the open source community and make fun projects like this one.