(PHP 5 >= 5.4.0, PHP 7, PHP 8)
CallbackFilterIterator::__construct — Create a filtered iterator from another iterator
$iterator
$callback
Creates a filtered iterator using the callback to determine which items are accepted or rejected.
callback
iterator
The iterator to be filtered.
The callback, which should return true to accept the current item or false otherwise. See Examples.
true
false
May be any valid callable value.
没有返回值。