I have
class P {
function fun() {
echo "P";
}
}
class Ch {
function fun() {
echo "Ch";
}
}
$x = new Ch();
How to call parent function fun from $x? Is it possible to do it directly or I have to write:
function callParent {
parent::fun();
}