<?php class tostr extends \stdClass { public function __toString() { return print_r($this,1); } public $a = '123'; protected $b = '456'; private $c = '789'; } echo new tostr();
You have javascript disabled. You will not be able to edit any code.