(PHP 4, PHP 5, PHP 7)
get_included_files — ���ر� include �� require �ļ����� array
�������б� include�� include_once�� require �� require_once ���ļ�����
���������ļ����Ƶ� array��
�ű��������Ϊ"���������ļ�"�����Խű�����Ҳ��� include ϵ�к������õĽű�����һ��
����� include �� require ���ļ��ڷ��ص� array ��ֻ���г�һ�Ρ�
Example #1 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";
}
?>
�������̻������
/path/to/abc.php /path/to/test1.php /path/to/test2.php /path/to/test3.php /path/to/test4.php
Note:
ʹ�� auto_prepend_file ����ָ�����������ļ���������ڷ��ص������