📜  添加了closure::call()[2] - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:01.932000             🧑  作者: Mango

代码示例1
$f = function () {
    return $this->n;
};
class MyClass {
    private $n = 42;
}
$myC = new MyClass;
$f->call($myC);