<?php trait foo { public $property = 'foo'; } class bar { use foo; public $property = 'bar'; } $bar = new bar(); var_dump($bar);
You have javascript disabled. You will not be able to edit any code.