Oops, no-perator found. Have a joke instead.
arithmetic
bitwise
~$a
Binary not
Binary "not" operation.
Tags
Related
{
selectOperator(operator.slug);
search = '';
}">
{
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-xor">$a ^ $b
$a = 0b01;
var_dump(~$a); // 0b11111111111111111111111110, -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.