<?php class x { function __tostring() { return 'foo'; } } $x = new x; var_dump(is_string($x), is_string("$x"));
You have javascript disabled. You will not be able to edit any code.