<?php error_reporting(-1); class A { function foo() { echo 'Hello'; } } class B { function bar() { A::foo(); } } $b = new B; $b->bar();
You have javascript disabled. You will not be able to edit any code.