Protected Access Modifier in PHP
In this article I am going to explain about protected access modifier in PHP.
When you declare the property and method with this keyword, you can access these methods and properties within the class, or/and the child class of that parent class can access these properties and methods of the parent class.
class Baseclass extends Myclass
$obj = new Baseclass();