<?php trait Shoutable { public function shout($str) { echo strtoupper($str); } } class Foo { use Shoutable; } $obj = new Foo; $obj->shout('hey!'); // HEY!
You have javascript disabled. You will not be able to edit any code.