get_included_files函数

来源:互联网 发布:仿 购物商城 app 源码 编辑:程序博客网 时间:2024/06/05 14:19

get_included_files可以以数组的形式显示目前引入的所有文件名称

<?phpinclude 'test1.php';include_once 'test2.php';require 'test3.php';require_once 'test4.php';$included_files = get_included_files();foreach ($included_files as $filename) {    echo "$filename\n";}?>

显示为

abc.phptest1.phptest2.phptest3.phptest4.php


0 0
原创粉丝点击