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