<?php class Foo implements Stringable { public function __toString() { return "Foo"; } } function greet(string $s) { echo "Hello $s"; } greet(new Foo());
You have javascript disabled. You will not be able to edit any code.