เป็น function ที่ไว้เช็คว่าไฟล์ที่เรากำลังทำงานอยู่นั้นมีการ include ไฟล์อะไรเข้ามา
โดยจะคืนค่าเป็น array ของชื่อไฟล์
ตัวย่าง mindphp.php
//
<?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";
}
?>
mindphp.php
test1.php
test2.php
test3.php
test4.php