Q. What will be the output?
Code:
$a = ['a'=>1, 'b'=>2]; $b = array_flip($a); echo $b[1];
β
Correct Answer: (A)
a
Explanation: array_flip swaps keys and values.