Skip to Main Content
PHP Master
book

PHP Master

by Davey Shafik, Lorna Mitchell, Matthew Turland
October 2011
Intermediate to advanced content levelIntermediate to advanced
400 pages
9h 23m
English
SitePoint
Content preview from PHP Master

Chapter 1 Object Oriented Programming

In this chapter, we’ll be taking a look at object oriented programming, or OOP. Whether you’ve used OOP before in PHP or not, this chapter will show you what it is, how it’s used, and why you might want to use objects rather than plain functions and variables. We’ll cover everything from the “this is how you make an object” basics through to interfaces, exceptions, and magic methods. The object oriented approach is more conceptual than technical—although there are some long words used that we’ll define and demystify as we go!

Why OOP?

Since it’s clearly possible to write complex and useful websites using only functions, you might wonder why taking another step and using OOP techniques is worth ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

PHP Object-Oriented Solutions

PHP Object-Oriented Solutions

David Powers
PHP 5 Unleashed

PHP 5 Unleashed

John Coggeshall
Intermediate PHP

Intermediate PHP

Lorna Jane Mitchell

Publisher Resources

ISBN: 9780987090874Errata