<?php class x { public function __construct() { $x =& $this; $x = new stdClass; var_dump($this); } public function test() { var_dump($this); } } $a = new x; var_dump($a); $a->test();
You have javascript disabled. You will not be able to edit any code.