Call php class method from string with parameter

后端 未结 3 563
猫巷女王i
猫巷女王i 2021-01-05 09:58

I am having trouble calling a class method from a string in PHP. Here\'s a simple example. Once I get this working I\'ll be using a variable as the method n

3条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-05 10:48

    Use this :

    call_user_method('get_images_for_tag',$this,$row["id"]);

提交回复
热议问题