IteratorIterator::key

(PHP 5 >= 5.1.0, PHP 7) Get the key of the current element public scalar IteratorIterator::key ( void ) Get the key of the current element. Returns: The key of the current element. See also: IteratorIterator::current() -

IteratorIterator::next

(PHP 5 >= 5.1.0, PHP 7) Forward to the next element public void IteratorIterator::next ( void ) Forward to the next element. Returns: No value is returned. See also: IteratorIterator::rewind() - IteratorIterator::valid() -

IteratorIterator::current

(PHP 5 >= 5.1.0, PHP 7) Get the current value public mixed IteratorIterator::current ( void ) Get the value of the current element. Returns: The value of the current element. See also: IteratorIterator::key() -

IteratorIterator::rewind

(PHP 5 >= 5.1.0, PHP 7) Rewind to the first element public void IteratorIterator::rewind ( void ) Rewinds to the first element. Returns: No value is returned. See also: IteratorIterator::next() - IteratorIterator::valid() -

InfiniteIterator::__construct

(PHP 5 >= 5.1.0, PHP 7) Constructs an InfiniteIterator public InfiniteIterator::__construct ( Iterator $iterator ) Constructs an InfiniteIterator from an Iterator. Parameters: iterator The iterator to infinitely iterate over. Returns: No value is returned. Exception: Throws an E_RECOVERABLE_ERROR if the iterat

IteratorIterator::__construct

(PHP 5 >= 5.1.0, PHP 7) Create an iterator from anything that is traversable public IteratorIterator::__construct ( Traversable $iterator ) Creates an iterator from anything that is traversable. Parameters: iterator The traversable iterator. Returns: No value is returned. See al

InfiniteIterator::next

(PHP 5 >= 5.1.0, PHP 7) Moves the inner Iterator forward or rewinds it public void InfiniteIterator::next ( void ) Moves the inner Iterator forward to its next element if there is one, otherwise rewinds the inner Iterator back to the beginning. Note: Even an InfiniteIterator stops if its inner Iterator is empty. Returns: No value is returned.

FilterIterator::valid

(PHP 5 >= 5.1.0, PHP 7) Check whether the current element is valid public bool FilterIterator::valid ( void ) Checks whether the current element is valid. Returns: TRUE if the current element is valid, otherwise FALSE This function is currently not documented; only its argument list is available.

GlobIterator::count

(PHP 5 >= 5.3.0, PHP 7) Get the number of directories and files public int GlobIterator::count ( void ) Gets the number of directories and files found by the glob expression. Returns: The number of returned directories and files, as an integer. Examples: GlobIterator::count() example <?php $iterator = new GlobIterat

GlobIterator::__construct

(PHP 5 >= 5.3.0, PHP 7) Construct a directory using glob public GlobIterator::__construct ( string $path [, int $flags = FilesystemIterator::KEY_AS_PATHNAME | FilesystemIterator::CURRENT_AS_FILEINFO ] ) Constructs a new directory iterator from a glob expression. Parameters: path The path of the directory. flags Option flags, the fla