📅  最后修改于: 2022-03-11 14:58:08.358000             🧑  作者: Mango
$f = function () {
return $this->n;
};
class MyClass {
private $n = 42;
}
$myC = new MyClass;
$c = $f->bindTo($myC, "MyClass");
$c();