Introduction to the First Edition

I have been using PHP in object-oriented projects since 2000. For most of that time, of course, PHP meant PHP 4, with its relatively limited support for objects. Even so, I found that I could do pretty much everything that I wanted with it, as long as I was careful and disciplined.

In early 2003, I began initial work on a book about PHP 4 and object-oriented programming. A good portion of the book was to focus on the strategies, disciplines, and workarounds required to get PHP to behave itself in an object-oriented context. Then I began to hear murmurs that PHP 5 was on its way, which dated my project before I had even started on it. I put the idea to one side and took up another book project.

It was for that ...

Get PHP Objects, Patterns, and Practice, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.