Multiple choice technology web technology

Which of the following are valid bitwise operators in php?

  1. ^

  2. |||

  3. >>

  4. ~

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

PHP supports several bitwise operators: '^' is XOR, '>>' is right shift, '<<' is left shift, '~' is NOT, '&' is AND, and '|' is OR. The triple pipe '|||' is not a valid PHP operator - it appears to be a confusion with the logical OR operator '||'.