본문으로 바로가기

[PHP] get_included_files()

category Helloworld!/PHP 2013. 5. 20. 19:30

get_included_files()현재 파일에서 include하고 있는 파일명들을 가져온다.


자세한 내용은 php.net을 참고

http://php.net/manual/kr/function.get-included-files.php


예시)

include test.php
include hey.php

$include_array = get_included_files();
print_r($include_array);

// Array([0] => 'test.php',  [1] => 'hey.php')