PHP count() Function

The count() function is used to count the elements of an array or the properties of an object.

Example -

Example -