Q. What will be the output?
Code:
$x = 0;
if($x) {
echo "True";
} else {
echo "False";
}
β
Correct Answer: (B)
False
Explanation: 0 is treated as false.