PHP - Arrays
Given this code:
What will be the output and why?
$arr = ["a" => 1, "b" => 2, "a" => 3];
echo $arr["a"];
What will be the output and why?
$arr = ["a" => 1, "b" => 2, "a" => 3];
echo $arr["a"];
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions