Check the list of all loaded files (ok)

<?php
// index.php
include_once 'Classes/A.php';
include_once 'Classes/B.php';
// load A class
$a = new A();
// check the list of all loaded files
var_dump(get_included_files());

Kết quả khi chạy index.php như sau:

array(3) { 
    [0]=> string(35) "C:\Laragon\www\autoloader\index.php" 
    [1]=> string(39) "C:\Laragon\www\autoloader\Classes\A.php" 
    [2]=> string(39) "C:\Laragon\www\autoloader\Classes\B.php" 
}

Last updated