iterator_count(3) php man page | unix.com

Man Page: iterator_count

Operating Environment: php

Section: 3

ITERATOR_COUNT(3)							 1							 ITERATOR_COUNT(3)

iterator_count - Count the elements in an iterator

SYNOPSIS
int iterator_count (Traversable $iterator)
DESCRIPTION
Count the elements in an iterator.
PARAMETERS
o $iterator - The iterator being counted.
RETURN VALUES
The number of elements in $iterator.
EXAMPLES
Example #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)
Related Man Pages
recursivecallbackfilteriterator(3) - php
iterator_to_array(3) - php
rdf::redland::iterator(3pm) - debian
rdf::trine::iterator::graph::materialized(3pm) - debian
tap::parser::iterator::array(3pm) - suse
Similar Topics in the Unix Linux Community
UNIX.COM 2017 Year End Summary
Coming Soon: Upgrade Forum Software (Dec 31 - Jan 1)
New Code Tags (Syntax Highlighting)
Please Welcome Don Cragun as Lead Moderator
Status of UNIX.COM Forum Transformation