PHP - Interfaces and Traits
What will be the output of the following PHP code?
trait Logger {
public function log() {
return 'Logging';
}
}
class User {
use Logger;
}
$user = new User();
echo $user->log();