Five more PHP design patterns

Nathat A. Good, author of the book «Design Patterns» post a n intresting article in which he show how to use tha patterns in PHP language. Thee following patterns are discussed in this article:

  • The adapter pattern

  • The iterator pattern

  • The decorator pattern

  • The delegate pattern

  • The state pattern

All patterns are illustrated with code examples. You can read the full version of articlle and download the source code on the IBM developerWorks site.

Comments

You can use simple HTML-formatting tags(like <b>, <ul>, <code> and others)