* refactor: clean to roadmap content * refactor: move shared helpers into scripts/lib
7 lines
633 B
Markdown
7 lines
633 B
Markdown
# Classes and Objects
|
|
|
|
PHP supports object-oriented programming, offering a multi-paradigm way of coding through classes and objects. A class is like a blueprint for creating objects that encapsulate all faculties, properties and methods. An object, on the other hand, is an instance of a class where you can interact with the class's methods and change its properties. PHP lets you define a class using the keyword 'class', set properties and methods within it, and then create an object of that class using 'new'.
|
|
|
|
Visit the following resources to learn more:
|
|
|
|
- [@official@Classes](https://www.php.net/manual/en/language.oop5.php) |