PHP - Interfaces and Traits
What will be the output of this PHP code?
interface Writer {
public function write(string $text);
}
class FileWriter implements Writer {
public function write(string $text) {
return strtoupper($text);
}
}
$fw = new FileWriter();
echo $fw->write('hello');