Q. Which PHP function is used to count all elements in an array, including nested arrays?
β
Correct Answer: (C)
count($array, COUNT_RECURSIVE)
Explanation: count() with COUNT_RECURSIVE counts all elements, including elements in nested arrays.