<?php class A implements Stringable { private $value = 'a'; public function __toString() { return $this->value; } } $a = new A(); var_dump($a, (string) $a, is_string($a));
You have javascript disabled. You will not be able to edit any code.