PHP - Operators
Given the code:
What is the output and why?
$arr = [1, 2, 3]; $result = $arr && false ? 'Yes' : 'No'; echo $result;
What is the output and why?
$arr = [1, 2, 3]; $result = $arr && false ? 'Yes' : 'No'; echo $result;
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions