php8.5
Home/ Manual/ predefined / throwable/ Throwable::getFile

Throwable::getFile

PHP function Edit on GitHub ✎

(PHP 7, PHP 8)

Gets the file in which the object was created

Description

Throwable::getFile(): string

Get the name of the file in which the thrown object was created.

Parameters Parameters

Return Values

Returns the filename in which the thrown object was created.

See Also

  • Exception::getFile

Source: language/predefined/throwable/getfile.xml · from the official PHP manual (php/doc-en)