interface Countable (View source)

Classes implementing Countable can be used with the count function.

Methods

int
count()

Count elements of an object

Details

int count()

Count elements of an object

Return Value

int

The custom count as an integer.

The return value is cast to an integer.