How to add methods dynamically

后端 未结 8 1446
故里飘歌
故里飘歌 2021-01-01 15:15

I\'m trying to add methods dynamically from external files. Right now I have __call method in my class so when i call the method I want, __call inc

8条回答
  •  离开以前
    2021-01-01 15:56

    I've worked up the following code example and a helper method which works with __call which may prove useful. https://github.com/permanenttourist/helpers/tree/master/PHP/php_append_methods

提交回复
热议问题