Ftre filter - #7
Conversation
SuRaMoN
commented
Aug 10, 2017
hey i'm sorry, but as far as i can see the new functionality can already be achieved with the use of a CallbackFilterIterator If i look at example1 your code can be replaced with: The second example can also be replaced with a callbackfilteriterator: I prefer the CallbackFilterIterator approach above yours because it reuses existing iterators in the php standard library. so unless i overlooked something, i cannot accept this |
Hi, I've added Try to implement such filtering with using |
Hi, SuRaMoN!
I've added simple filter to PathIterator's constructor via forth parameter.
It makes possible to throw out some data from result.
Examples how it use into examples/filter-example{1,2}.php files.
I've used it in project and it realy works.