get_included_files
array get_included_files(void)
Gets the list of files used by include() .
Returns:
Array of included files
Description:
Returns an array containing the names of files that have been included in the current script, using either the include() or include_once() function.
Version:
Existing since version 4.0
See also:
get_required_files()
Example:
Display included files
require("testinclude.php"); print_r(get_included_files()); |
Get PHP Functions Essential Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.