- var_dump: documentation ( source)
- restore_error_handler: documentation ( source)
- set_error_handler: documentation ( source)
- strtolower: documentation ( source)
<?php
function call($f) {
return $f();
}
class A {
protected $a;
public function foo() {
var_dump( strtolower(
call(function() {
set_error_handler(function() {});
$class = get_called_class();
restore_error_handler();
return $class;
})));
}
}
$a = new A;
$a->foo();