- var_dump: documentation ( source)
<?php
class Test {
private $name = 'test';
public function __construct() {
var_dump($this, $this->name);
call_user_func(function () {
var_dump($this, $this->name);
call_user_func(function () {
var_dump($this, $this->name);
});
});
}
}
$test = new Test();