<?php class A { private $name = "Meow"; public function __toString() { throw new Exception('Op gei lalalei'); return $this->name; } } $test = new A(); try { $test->__toString(); } catch(Exception $e) { echo "Exception caught\n"; } try { echo $test; } catch(Exception $e) { echo "Exception caught\n"; }
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`