What is an object?
An object is an instance of a class. It has its own behavior and identity.
BY Best Interview Question ON 23 Apr 2021
Example
//Create an object of MyClass
$object = new MyCustomClass();
OR
$object = new MyCustomClass;
An object is an instance of a class. It has its own behavior and identity.
//Create an object of MyClass
$object = new MyCustomClass();
OR
$object = new MyCustomClass;