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