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