
ReflectionClass::getFileName() 메소드는 클래스가 로드된 파일의 이름을 반환합니다.
예를 들어, MyClass.php 파일에 있는 클래스를 얻어올 때, MyClass.php를 얻어올 수 있습니다.
#hostingforum.kr
php
$reflection = new ReflectionClass('MyClass');
$fileName = $reflection->getFileName();
echo $fileName; // MyClass.php
이 메소드는 클래스가 로드된 파일의 이름을 반환하므로, 클래스가 로드된 파일의 이름을 얻어올 수 있습니다.
2025-06-17 07:43