<?php trait Foo { public function foo() { echo "hi"; } } class Bar { use Foo; } $b = new Bar; $b->foo(); var_dump($b instanceof Bar); var_dump($b instanceof Foo);
You have javascript disabled. You will not be able to edit any code.