php8.5
Home/ Manual/ spl / cachingiterator/ CachingIterator::count

CachingIterator::count

PHP function Edit on GitHub ✎

(PHP 5 >= 5.2.2, PHP 7, PHP 8)

The number of elements in the iterator

Description

CachingIterator::count(): int

Func

May return the number of elements in the iterator.

Parameters Parameters

Return Values

The count of the elements iterated over.

Source: reference/spl/cachingiterator/count.xml · from the official PHP manual (php/doc-en)