Oops, no-perator found. Have a joke instead.
arithmetic
bitwise
$a >> $b
Bitshift right
Shift the bits of the first operand to the right by the number of positions specified in the second operand.
Tags
// Binary representation: 00010100
$a = 20;
// Binary result: 00000101
$a >> 2;
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.