- var_dump: documentation ( source)
<?php
unset($this);
class Foo{
protected $a = true;
public function __construct(){
echo "From Foo()";
}
public static function init(){
unset($this);
var_dump(__CLASS__);
//echo $this->a;
echo "From Foo::init()";
}
}
Foo::init();