- var_dump: documentation ( source)
<?php
class A
{
public function toto()
{
var_dump($this);
}
protected function tata()
{
return __CLASS__;
}
}
class B extends A
{
protected function tata()
{
return __CLASS__;
}
}
$b = new B;
echo $b->toto();