PHP7 method_exists Uncaught Error: Function name must be a string

后端 未结 2 1484
囚心锁ツ
囚心锁ツ 2020-12-16 13:40

I am getting this error:

Fatal error: Uncaught Error: Function name must be a string in

For this code:

if (funct         


        
2条回答
  •  别那么骄傲
    2020-12-16 14:07

    $funName = $item['function'];
    

    And use instead (without) array.

    @Svetlio, not for older versions, but for compatible!

    Why people misunderstant this? You all are too lazy to write one more line for assignment?

提交回复
热议问题