Q. What will be the output?
Code:
$arr = ["x" => 1, "y" => 2]; echo $arr["y"];
β
Correct Answer: (B)
2
Explanation: Accessing associative array value for key 'y'.