<?php class Foo { public function foo() { return $this instanceof Foo; } } class Bar { public function bar() { return Foo::foo(); } } $bar = new Bar; var_dump($bar->bar());
You have javascript disabled. You will not be able to edit any code.