Summary

We have only scratched the surface of PHP’s support for objects in this hour. We will cover more in Hour 17.

The extent to which you use objects and classes in your projects is a matter of choice. It is likely that heavily object-oriented projects will be somewhat more resource-intensive at runtime than more traditional code. However, effective deployment of object-oriented techniques can significantly improve the flexibility and organization of your code.

Throughout this hour, you learned how to create classes and instantiate objects from them. You learned how to create and access properties and methods. You learned how to build new classes that inherit and override the features of other classes.

Finally, you learned how to determine ...

Get Sams Teach Yourself PHP in 24 Hours, Third 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.