Follow my updates with RSS

PHP5 Abstraction for the Rest of Us

PHP5 Abstraction for the Rest of US

Millions of web developers, from those just starting out with sparkling ampersands in their eyes to hardened veterans with ‘< ?php’ burned to the back of their retinas, have found a love for PHP and its possibilities but still talk in hushed whispers about the mystery and intrigue of Object Oriented Programming (OOP) in PHP.

This tutorial aims to remove some of the curly-brace-filled haze that often surrounds OOP and by the end of this lesson you will have created a class, instantiated an object, given inheritance to some children and come to understand why OOP is such a powerful tool to have at your disposal. If you have no idea what any of the above means but are shaking with a desire to find out, read on as we look at Abstraction for the rest of us.


This is a tutorial I wrote for The Web Squeeze that aims to provide a comprehensive introduction to Object Oriented Programming in PHP5. Although much of the content is new, the tutorial itself is an updated version of one I wrote for the Creative Coding newsletter (A newsletter published monthly by the staff at WebForumz). The original article on OOP was based around PHP4’s implementation of objects, with the example code looking quite different to this latest on PHP5.

Unfortunately, when ownership of WebForums changed hands earlier in the year, the Creative Coding newsletter was removed from the server and that original article no longer exists on the Web.

“PHP5 Abstraction for the Rest of Us” generated quite a bit of interest and was receiving over one thousand hits a week for a month after it was published.

VN:F [1.4.6_730]
Rating: 5.0/5 (1 vote cast)

Tags: , ,

Leave a Reply