php8.5
Home/ Manual/ reflection / reflectionclass/ ReflectionClass::getFileName

ReflectionClass::getFileName

PHP function Edit on GitHub ✎

(PHP 5, PHP 7, PHP 8)

Gets the filename of the file in which the class has been defined

Description

ReflectionClass::getFileName(): string|false

Gets the filename of the file in which the class has been defined.

Parameters Parameters

Return Values

Returns the filename of the file in which the class has been defined. If the class is defined in the PHP core or in a PHP extension, false is returned.

See Also

  • ReflectionClass::getExtensionName

Source: reference/reflection/reflectionclass/getfilename.xml · from the official PHP manual (php/doc-en)