get

    xiaoxiao2021-12-14  24

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

    <?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"; } ?> 显示为

    abc.php test1.php test2.php test3.php test4.php

    转载请注明原文地址: https://ju.6miu.com/read-969431.html

    最新回复(0)