Function list of php file

前端 未结 12 1295
南方客
南方客 2020-11-28 14:40

How to get list of functions that are declared in a php file

12条回答
  •  爱一瞬间的悲伤
    2020-11-28 15:20

    The simplest thing (after I saw @joachim answer) is to use get_defined_functions and then only watch for the 'user' key (which contains an array of user-defined methods)

    This is the code that helped me solved the problem

提交回复
热议问题