- var_dump: documentation ( source)
<?php
class FOO {
public function bar()
{
$f = function () { return get_called_class(); };
$f = $f->bindTo(null, __CLASS__);
$f = $f->bindTo($this, __CLASS__);
var_dump($f);
}
}
$f = new FOO;
$f->bar();