iterator_count

iterator_count

(PHP 5 >= 5.1.0, PHP 7)

iterator_countCount the elements in an iterator

Description

int iterator_count ( Traversable $iterator )

Count the elements in an iterator. iterator_count() is not guaranteed to retain the current position of the iterator.

Parameters

iterator

The iterator being counted.