Multiple choice technology web technology

Which logical operators are allowed in PHP?

  1. &&

  2. and

  3. nxor

  4. ||

Reveal answer Fill a bubble to check yourself
A,B,D Correct answer
Explanation

PHP supports multiple logical operators: '&&' and 'and' both represent logical AND, '||' and 'or' represent logical OR, and '!' represents logical NOT. The symbol variants have different precedence levels but the same logical functionality. 'nxor' is not a valid PHP operator.