Q. What will be the output?
Code:
echo (int)(bool) 'false';
β
Correct Answer: (B)
1
Explanation: Non-empty string is true → (int)true = 1.
echo (int)(bool) 'false';
Explanation: Non-empty string is true → (int)true = 1.