There are several boolean operators in PHP. I'm not able to provide you with it's full list, but here are some of the most used ones:
&& - AND
- OR
! - NOT
what is boolean operator
Boolean is a type, not an operator and can have the value of either TRUE or FALSE
NOT
A Boolean operator is any operator that returns true or false. False is typically denoted by the integer value 0 while all non-zero values equate to true. The less-than operator (<) is an example of a Boolean operator.
BUT (apex)
The ! (boolean invert) operator returns the opposite of a boolean's current value: if(!(7 5," and the statement produces this output: not equal
And, or, not, xor, nand, nor. There are a few others, too.
and
not shouldn't be used
The logic operator provides boolean results of combinations of other boolean expression, some of which might be relational expressions. For example... bool result = (a < 3) && (b > 4); The bitwise operator provides the same kind of boolean logic, AND, OR, and NOT, but it does it to the correspondingly ranks bits in one or two integers. For example ... int result = (a & 0xff) | (!b);
The incremental operator increases the variable by 1. See the example below: <?php $number = 10; $number++; echo $number; // outputs 11 ?>
The answer is "and"