PHP, how to pass func-get-args values to another function as list of arguments?

后端 未结 3 477
予麋鹿
予麋鹿 2020-12-29 20:38

I want to create a function (my_function()) getting unlimited number of arguments and passing it into another function (call_another_function()). <

3条回答
  •  旧巷少年郎
    2020-12-29 21:33

    It's not yet documented but you might use reflection API, especially invokeArgs.

    (maybe I should have used a comment rather than a full post)

提交回复
热议问题