php8.5
Home/ Manual/ spl / filteriterator/ FilterIterator::__construct

FilterIterator::__construct

PHP function Edit on GitHub ✎

(PHP 5 >= 5.1.0, PHP 7, PHP 8)

Construct a filterIterator

Description

FilterIterator::__construct(Iterator $iterator)

Constructs a new FilterIterator, which consists of a passed in iterator with filters applied to it.

Func

Parameters

iterator

The iterator that is being filtered.

See Also

  • LimitIterator::__construct

Source: reference/spl/filteriterator/construct.xml · from the official PHP manual (php/doc-en)