I have been trying to figure out how to go about doing this but I am not quite sure how.
Here is an example of what I am trying to do:
class test {
class sampleClass { public function f1() { return "f1 run"; } public function f2() { echo ("f2 run" ); $result = $this->f1(); echo ($result); } f2(); }
output :
f2 run f1 run