同福

PHP7+闭包类Closure的使用示例

匿名方法就是闭包类Closure!!!

Closure::bindTo($newThis, $newScope)

Closure::__invoke(...$_)