Book on OOP in PHP8
A Simple Book on Object-Oriented Programming in PHP for Beginners.
Basics
001
Introduction to OOP in PHP
002Classes and Objects in OOP in PHP
003Properties of Objects in PHP
004Object Methods in PHP
005Method Parameters in PHP
006Accessing Properties Inside Classes in OOP in PHP
007Calling Methods Inside Classes in OOP in PHP
008Constructor in OOP in PHP
009Properties Through Constructor Parameters in OOP in PHP
010Private Properties in OOP in PHP
011Private Methods in OOP in PHP
012Property Getters in OOP in PHP
013Property Setters in OOP in PHP
014Advantages of Setters and Getters in OOP in PHP
Advanced
015
Storing Classes in Separate Files in PHP
016Method Chaining in OOP in PHP
017Class as a Set of Methods in OOP in PHP
018Storing Objects in Arrays in OOP in PHP
019Objects Inside Classes in OOP in PHP
020Safe Extraction Operator in OOP in PHP
021Safe Extraction Operator in Chains in OOP in PHP
022Manipulating Objects in Classes in OOP in PHP
023Passing Objects by Reference in OOP in PHP
024Determining Object's Class Membership in OOP in PHP
Inheritance
025
Class Inheritance in OOP in PHP
026Inheritance of Public Methods in OOP in PHP
027Child Class Methods in OOP in PHP
028Overriding Parent Methods in OOP in PHP
029Calling an Overridden Method in OOP in PHP
030Constructor in Inheritance in OOP in PHP
031Private Methods in Inheritance in OOP in PHP
032Private Properties in Inheritance in OOP in PHP
033The Problem of Private Properties in Inheritance in OOP in PHP
034Protected Methods in OOP in PHP
035Protected Properties in OOP in PHP
036The instanceof Operator and Inheritance in OOP in PHP
Calls
037
Accessing Property by Variable Name in OOP in PHP
038Property Name from Array in OOP in PHP
039Property Name from Associative Array in OOP in PHP
040Property Name from Function in OOP in PHP
041Property Name from Another Object in OOP in PHP
042Method Name from Variable in OOP in PHP
043Calling a Method Immediately After Object Creation in OOP in PHP
Static
044
Static Methods in OOP in PHP
045Static Methods Inside a Class in OOP in PHP
046Static Properties in OOP in PHP
047Static Properties Inside a Class in OOP in PHP
048Accessing Static Through Class and Object in OOP in PHP
049Combination with static in OOP in PHP
050Static Methods and $this in OOP in PHP
051Example of Static in OOP in PHP
Functions
052
Function for Getting the Class Name in OOP in PHP
053Function for Getting Class Methods in OOP in PHP
054Function for Getting Class Properties in OOP in PHP
055Function for Getting Object Properties in OOP in PHP
056Function for Checking Class Existence in OOP in PHP
057Function for Checking Method Existence in OOP in PHP
058Function for Checking Property Existence in OOP in PHP
059Function for Getting the Parent Class in OOP in PHP
060Function for Checking Class Inheritance in OOP in PHP
061Function for Checking Object Class Membership in OOP in PHP
062Function for Getting All Declared Classes in OOP in PHP
Abstract
Interfaces
065
Interfaces in OOP in PHP
066Practice on Using Interfaces in OOP in PHP
067Rules for Naming Interfaces in OOP in PHP
068Using Interfaces in OOP in PHP
069Parameters in Interface Methods in OOP in PHP
070Constructor Declaration in Interface in OOP in PHP
071Inheritance of Interfaces From Each Other in OOP in PHP
072Interfaces and Instanceof in OOP in PHP
073Multiple Interfaces in OOP in PHP
074Inheritance from a Class and Implementation of an Interface in OOP in PHP
075Constants in Interface in OOP in PHP
076Functions for Working with Interfaces in OOP in PHP
Traits
077
Traits in OOP in PHP
078Multiple Traits in OOP in PHP
079Resolving Trait Method Conflicts in OOP in PHP
080Access Modifiers and Traits in OOP in PHP
081Changing Access Rights to Trait Methods in OOP in PHP
082Priority of Methods When Working with Traits in OOP in PHP
083Abstract Methods of Traits in OOP in PHP
084Using Traits in Traits
085Functions for Working with Traits in OOP in PHP
Magic
086
Magic Methods in OOP in PHP
087Magic Method toString in OOP in PHP
088Getting Properties Through Magic in OOP in PHP
089Read-Only Properties in OOP in PHP
090Reading a Non-Existent Property in OOP in PHP
091Writing Properties Through Magic in OOP in PHP
092Reading a Non-Existent Property in OOP in PHP
093Validation of Properties on Write in OOP in PHP
094Practical Application of Magic Methods in OOP in PHP
Namespaces and Autoloading
095