Is Multiple Iterators is possible in php?

Posted by artvolk on Stack Overflow See other posts from Stack Overflow or by artvolk
Published on 2010-03-14T11:24:38Z Indexed on 2010/03/14 11:35 UTC
Read the original article Hit count: 390

Filed under:
|
|

Good day!

I know that C# allows multiple iterators using yield, like described here: http://stackoverflow.com/questions/1754041/is-multiple-iterators-is-possible-in-c

In PHP there is and Iterator interface. Is it possible to implement more than one iteration scenario for a class?

© Stack Overflow or respective owner

Related posts about php

Related posts about design-patterns