PHP Super
//Java = super
//PHP = parent
//Example
class ClassA
{
public function methodA()
{
echo 'methodA working';
}
}
class ClassB extends ClassA
{
public function __construct()
{
parent::methodA(); //super
}
}
$classB = new ClassB();
//Output:
//methodA working
Murat Çakmak