PHP判断文件是否被引入的方法get_included_files用法示例

上传:u38369 浏览: 13 推荐: 0 文件:PDF 大小:38KB 上传时间:2021-02-01 08:38:44 版权申诉
本文实例讲述了PHP判断文件是否被引入的方法get_included_files用法。分享给大家供大家参考,具体如下: <?php // 本文件是 abc.php include '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; } ?> 结果: 以上例程会输
上传资源
用户评论