<?php trait A { function bar() { var_dump(get_class(), get_class(null), get_class(self), get_defined_vars(), get_class($this)); } } class B { use A; } $f = new B; $f->bar();
You have javascript disabled. You will not be able to edit any code.