O'Reilly logo

PHP 5 Unleashed by John Coggeshall

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 13. Object-Oriented Programming in PHP

Why Objects?

As scripts become more and more complex, the difficulty of maintaining them increases dramatically—especially if you are programming in a procedural style. The concept of object-oriented programming (OOP) is to provide a real organizational structure to your scripts through encapsulation. Although PHP 4 introduced the notion of OOP into PHP, it could not be considered a true OO implementation. Because of the significant limitations in PHP 4 in this respect, the object model in PHP 5 has been completely redesigned to more accurately reflect the academic ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required