Query: iterator_count
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
ITERATOR_COUNT(3) 1 ITERATOR_COUNT(3) iterator_count - Count the elements in an iteratorSYNOPSISint iterator_count (Traversable $iterator)DESCRIPTIONCount the elements in an iterator.PARAMETERSo $iterator - The iterator being counted.RETURN VALUESThe number of elements in $iterator.EXAMPLESExample #1 iterator_count(3) example <?php $iterator = new ArrayIterator(array('recipe'=>'pancakes', 'egg', 'milk', 'flour')); var_dump(iterator_count($iterator)); ?> The above example will output: int(4) PHP Documentation Group ITERATOR_COUNT(3)