动态调用PHP的方法

    技术2022-05-18  18

    call_user_func(array($this,$event), $state, $id);

     

    $this : 类名。也可以是类的对象

     

    $event:方法名。 调用的方法名

     

    后面是参数


    最新回复(0)