PHP - Interfaces and Traits
What will be the output of this PHP code?
interface Logger { public function log(string $msg); }
class FileLogger implements Logger {
public function log(string $msg) { echo "Log: $msg"; }
}
$logger = new FileLogger();
$logger->log('Test');