Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Throwable::getCodeThrowable::getLine>
^ThrowableLast updated: Mon, 26 Oct 2026

Throwable::getFile

(PHP 7, PHP 8)

Throwable::getFile — Gets the file in which the object was created

Description

public function Throwable::getFile(): string

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

Parameters

This function has no parameters.

Return Values

Returns the filename in which the thrown object was created.

See Also


<Throwable::getCodeThrowable::getLine>
^ThrowableLast updated: Mon, 26 Oct 2026