<?php trait FooTrait { public $foo = 'asdf'; } class Bar { use FooTrait; public $foo = 'qwer'; } class Foo extends Bar {} $foo = new Foo(); var_dump($foo->foo);
You have javascript disabled. You will not be able to edit any code.