Zend
200-710 · Question #18
What is the result of the following bitwise operation in PHP? 1 ^ 2
The correct answer is B. 3. See the full explanation below for the reasoning.
PHP Basics
Question
What is the result of the following bitwise operation in PHP? 1 ^ 2
Options
- A1
- B3
- C2
- D4
- E-1
How the community answered
(27 responses)- A4% (1)
- B78% (21)
- D7% (2)
- E11% (3)
Topics
#bitwise XOR#binary operators#bitwise arithmetic#operators
Community Discussion
No community discussion yet for this question.