Q. What will be the output?
Code:
$a = [1,2,3];
array_shift($a);
echo implode(',', $a);
β
Correct Answer: (B)
2,3
Explanation: array_shift removes first element.