php man page for iterator_count

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 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
__gnu_pbds::detail::pat_trie_base__inode_iterator(3) - centos
recursivecallbackfilteriterator(3) - php
rdf::trine::iterator::graph::materialized(3pm) - debian
__gnu_pbds::detail::pat_trie_base__inode_iterator(3cxx) - debian
imagick.setiteratorindex(3) - php
Similar Topics in the Unix Linux Community
Simple rules of the UNIX.COM forums:
User Guide: Posting in the Emergency Forum
UNIX.COM 2017 Year End Summary
Coming Soon: Upgrade Forum Software (Dec 31 - Jan 1)
Please Welcome Nicki Paul to the Moderator Team!