doubipiao1611 2010-08-06 19:26
浏览 99

快速查看PHP项目或代码使用的函数/库

Is there a way to generate a list of all the functions being used by a piece of code?

With Java it is easy as you can just copy the import statements at the top of the code. With PHP, as you don't need to import the library, it is more difficult.

I'm after a quick solution, if there is one, for documentation purposes.

  • 写回答

5条回答 默认 最新

  • doushun9875 2010-08-06 19:31
    关注

    I'd say this is much harder in PHP, considering features such as call_function and eval that allow for wild ways of calling functions. Your best bet is probably to find all instances of include, include_once, require and require_once, but you can't be sure that your list is concise this way. There's also class autoloading to be considered.

    评论

报告相同问题?

悬赏问题

  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭
  • ¥15 2020长安杯与连接网探
  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么
  • ¥15 banner广告展示设置多少时间不怎么会消耗用户价值
  • ¥15 可见光定位matlab仿真
  • ¥15 arduino 四自由度机械臂