- var_dump: documentation ( source)
<?php
class x
{
public function __construct()
{
$x =& $this;
$x = new stdClass;
$x->xx = 123;
var_dump($this);
}
public function test()
{
var_dump($this);
}
}
$x = new x;
var_dump($x);