CHAPTER 2

image

Objects

Objects were not always a key part of the PHP project. In fact, they have been described as an afterthought by PHP’s designers.

As afterthoughts go, this one has proved remarkably resilient. In this chapter, I introduce coverage of objects by summarizing the development of PHP’s object-oriented features.

We will look at:

  • PHP/FI 2.0: PHP, but not as we know it
  • PHP 3: Objects make their first appearance
  • PHP 4: Object-oriented programming grows up
  • PHP 5: Objects at the heart of the language
  • PHP 6: A glimpse of the future

The Accidental Success of PHP Objects

With so many object-oriented PHP libraries and applications in circulation, ...

Get PHP Objects, Patterns, and Practice, Fourth 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.