Which PHP function returns the number of elements in an array?
Correct answer B. count()
Explanation
count() returns the number of elements in an array. strlen() works on strings, while length() and size() are not built-in PHP functions.
Answer checked How we write and check questions
Discussion