- var_dump: documentation ( source)
- get_called_class: documentation ( source)
<?php
namespace Henk\Test;
class TestGetClass {
public function getMe() {
var_dump(get_called_class());
}
}
class B extends TestGetClass {
}
$a = new TestGetClass();
$b = new B();
$a->getMe();
$b->getMe();