유용한 함수 get_included_files > 퍼블리셔팁

퍼블리셔팁

퍼블리싱과 관련된 유용한 정보를 공유하세요.
질문은 상단의 QA에서 해주시기 바랍니다.

유용한 함수 get_included_files 정보

HTML 유용한 함수 get_included_files

본문

가끔 에디터로 프로그램 작업을 하다 보면
 
어떤 파일이 인클루드 되었는지 헷갈릴때가 있습니다.
그럴때 이전에 어떤 파일들이 include 나 require 되었는지 확인하는 함수 입니다.
 
get_included_filesReturns an array with the names of included or required files
 
array get_included_files ( void )
Gets the names of all files that have been included using include(), include_once(), require() or require_once().
 
 
사용법
$included_files get_included_files();

foreach (
$included_files as $filename
) {
    echo 
"$filename\n"
;
}

추천
8
  • 복사

댓글 7개

© SIRSOFT
현재 페이지 제일 처음으로