PHP: Get PHP's variables, functions, constants from a php file

后端 未结 3 1809
暗喜
暗喜 2021-01-07 02:16

Is there a way to get user-defined php functions, variables, constants from a php file? Following functions are not the best way to do so because they get all decalred funct

3条回答
  •  甜味超标
    2021-01-07 02:46

    call get_defined_functions, then include the file, call get_defined_functions once again and compute the difference.

提交回复
热议问题