Q. What will be the output?
Code:
$a = true; $b = false; echo $a + $b;
β
Correct Answer: (A)
1
Explanation: true=1, false=0, so result is 1.
$a = true; $b = false; echo $a + $b;
Explanation: true=1, false=0, so result is 1.