php 查看所有载入文件 所有变量

$included_files = get_included_files();
foreach($included_files as $filename){
 echo $filename.'<br />';
}

有些时候当看陌生代码时候为了更快的分析代码,最好是吧运行到结束行的所有载入文件,变量都输出看一看,以下的方法很多人都知道,但是我想也有很多人不知道。

查看运行到打印行的所有载入文件

$included_files = get_included_files();
print_r($included_files);

查看系统里的所有变量

print_r($globals);

原文地址:https://www.cnblogs.com/daizhuacai/p/2889958.html