Chapter 9. Working with Objects
Programmers use objects to store and organize data. Object-oriented programming structures found in many programming languages are also evident in PHP. However, in PHP, it is not required that you write your scripts in an object-oriented manner. Many PHP scripts, in fact most of the ones you will find in this book, are procedural rather than object-oriented. If you are coming to PHP with a background in object-oriented programming, this chapter will help you to understand the object model in PHP. If you are altogether new to programming, it’s important to understand the basics of object-oriented programming, but you might want to gain experience in procedural programming and the fundamentals of the PHP language ...
Get Sams Teach Yourself PHP, MySQL and Apache All in One, 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.