Every once in a while, I get into an argument about extending PHP’s Traversable interface instead of theĀ Iterator interface in custom interfaces. The confusion seems to result from the official documentation of Traversable. Let me clarify why you should give Traversable much more love than you do right now.

Read the rest of this entry »

6 Comments | Category: Best Practices

Additional Resources