- var_dump: documentation ( source)
<?php
namespace app\Test;
class Test{
function uu()
{
$this->dd();
}
function dd()
{
var_dump(__CLASS__, __METHOD__);
}
}
class Test2 extends Test{}
$test = new Test2();
$test->uu();