- var_dump: documentation ( source)
<?php
class y { private $ppp = 123; }
class x
{
public function __construct()
{
$x =& $this;
$x = new y;
var_dump(get_class($this));
$y = $this;
var_dump($y->ppp);
}
}
new x;