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