标签: php closures pass-by-reference static-members
self::$ancestors = array(); self::ancestors_each($arFields['ID'], function($section_id) use(self::&$ancestors) { $ancestors[$section_id] = true; });
我需要将一些带有闭包的东西收集到一个静态字段数组中。所以我需要通过引用将它传递给闭包。我如何实现这一目标?