Q. What will be the result of the following?
Code:
$array = [1, 2, 3]; echo end($array);
β
Correct Answer: (A)
3
Explanation: end() advances array pointer to last element and returns its value.