RecursiveCallbackFilterIterator::__construct
(PHP 5 >= 5.4.0, PHP 7, PHP 8)
RecursiveCallbackFilterIterator::__construct — Create a RecursiveCallbackFilterIterator from a RecursiveIterator
Parameters
iterator
-
The recursive 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.