Storing a Closure Function in a Class Property in PHP

后端 未结 6 1021
清歌不尽
清歌不尽 2021-01-21 07:37

ok I do have the code below

bar();
       }
    }

    $mee         


        
6条回答
  •  北恋
    北恋 (楼主)
    2021-01-21 08:12

    Use __call to catch all non-defined methods and then look up the closure and invoke it. Take a look at my post on this SitePoint thread.

提交回复
热议问题