Q. What will be the output?
Code:
$arr = [1, 2, 3]; echo count($arr);
β
Correct Answer: (B)
3
Explanation: count() returns number of elements in array.