© Matt Zandstra 2016

MATT ZANDSTRA, PHP Objects, Patterns, and Practice, 10.1007/978-1-4842-1996-6_2

2. PHP and Objects

Matt Zandstra

(1)Liverpool, Merseyside, UK

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

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

We will look at the following:

  • 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 7: Closing the gap

The Accidental Success of PHP Objects

With PHP’s extensive ...

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