Q. What will be the output?
Code:
$a = 0; echo $a ?: 'fallback';
β
Correct Answer: (A)
fallback
Explanation: Ternary shortcut treats 0 as false.