【发布时间】:2016-10-28 07:14:18
【问题描述】:
是否可以在传递给参数后修改(添加更多代码)到 PHP 中的闭包?
function foo () {
bar (
function () {
$a = baz ();
$b = fooBar ();
}
);
}
function bar (Closure $closure) {
$closure // <------ I need to add code to this function.
}
【问题讨论】: