© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2024
A. VasilevPHP by Examplehttps://doi.org/10.1007/979-8-8688-0258-4_7

7. Classes and Objects

Alex Vasilev1  
(1)
Department of Software Systems and Technologies, Taras Shevchenko National University of Kyiv, Kyiv, Ukraine
 

—As you may have gathered, I’m in big trouble.

—You’re always in trouble.

ALF (TV series)

This chapter discusses how the principles of object-oriented programming (OOP for short) are implemented in PHP. Let’s start by introducing the concept of classes and objects. That is the cornerstone of the OOP paradigm, and how the main conceptual points are learned will largely determine the success of using the broad features of PHP to create OOP projects. ...

Get PHP by Example: A Practical Guide to Creating Web Applications with PHP 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.