PHP Design Pattern Examples.
http://www.fluffycat.com/PHP-Design-Patterns/ - also check out java on site too introduction to patterns article :- http://net.tutsplus.com/articles/general/a-beginners-guide-to-design-patterns/
first build simple class then abstract class