CallbackFilterIterator::__construct
(PHP 5 >= 5.4.0, PHP 7, PHP 8)
CallbackFilterIterator::__construct — Create a filtered iterator from another iterator
Açıklama
public function CallbackFilterIterator::__construct(
Iterator $iterator,
callable $callback)
Bağımsız Değişkenler
iterator
-
The iterator to be filtered.
callback
-
The callback, which should return true to accept the current item
or false otherwise.
See Examples.
May be any valid callable value.