Programming Languages PHP Objective
Jan 02, 2013

Which of the following functions counts elements in the array?

Choose the correct answer:
A) sizeof
B) array_count
C) count
D) count_array
Detailed Explanation

Explanation: The count() function returns the number of elements in an array. It can also count properties in an object. sizeof() is an alias of count() and works the same way. Syntax: count($array);

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback