Home > Backend Development > PHP Tutorial > 如何输出复杂php文件运行过程中加载其他所有php文件的数组

如何输出复杂php文件运行过程中加载其他所有php文件的数组

WBOY
Release: 2016-06-13 10:33:04
Original
1079 people have browsed it

怎么输出复杂php文件运行过程中加载其他所有php文件的数组?
怎么输出复杂php文件运行过程中加载其他所有php文件的数组?
print_r($GLOBALS)没有这信息


------解决方案--------------------
获取所有被加载的文件可用函数 get_included_files 
至于是哪个文件在哪个文件中加载的就不太容易得到了,不知得到了有什么用
或许用 xdebug 可以跟踪的到

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template