Search Results
FilterIterator::accept (PHP 5 >= 5.1.0, PHP 7, PHP 8) FilterIterator::accept — Check whether the current element of the iterator is acceptable
FilterIterator::accept 26 déc. 2018 22 fois (PHP 5 >= 5.1.0, PHP 7, PHP 8) FilterIterator::accept — Vérifie si l'élément courant de l'itérateur est acceptable
Introduction This abstract iterator filters out unwanted values. This class should be extended to implement custom iterator filters. The FilterIterator::accept () must be implemented in the subclass.
/* Inherited methods */ publicmixedcurrent () publicIteratornullgetInnerIterator () publicmixedkey () publicvoidnext () publicvoidrewind () publicboolvalid () Table of Contents FilterIterator::accept — Check whether the current element of the iterator is acceptable FilterIterator::__construct — Construct a filterIterator
May 1, 2025 · The accept() method is the heart of a FilterIterator: it determines whether the current element passes the filter.
Simple usage example of `FilterIterator::accept ()`. The PHP function FilterIterator::accept is used to check whether the current element of the iterator meets certain criteria and is acceptable.
Introduction This abstract iterator filters out unwanted values. This class should be extended to implement custom iterator filters. The FilterIterator::accept () must be implemented in the subclass.
