use the double colon(::) and parent keyword to access the variables or methods of the parent class in php
-
class myparent {
-
function myfunction() {
-
echo "parent method";
-
}
-
}
-
-
class mychild extends myparent {
-
function myfunc()[
-
parent::myfunction();
-
}
-
}