PHP xor | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

PHP xor

Expect: True xor True = false False xor false = false True or false = true The code attached shows differently on true xor true = true In addition, I thought echo false would print false or 0 instead of nothing. https://code.sololearn.com/w44fOBaVt7DD/?ref=app

12th Mar 2022, 12:37 AM
Si Qi Zheng
Si Qi Zheng - avatar
1 Answer
0
A cast to integer may be necessary to display false (int)<expression>
12th Mar 2022, 7:55 AM
Ipang