- var_dump: documentation ( source)
<?php
class A {
private $p1 = "secret";
public function B() {
var_dump($this);
${'t' . 'his'} = 'hidden'; // works
var_dump($this);
return $this . ' ' . $this->p1;
return $this->p1;
}
}
$a = new A;
echo $a->B();