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::getFileThrowable::getTrace>
^ThrowableLast updated: Mon, 26 Oct 2026

Throwable::getLine

(PHP 7, PHP 8)

Throwable::getLine — Gets the line on which the object was instantiated

Description

public function Throwable::getLine(): int

Returns the line number where the thrown object was instantiated.

Parameters

This function has no parameters.

Return Values

Returns the line number where the thrown object was instantiated.

See Also


<Throwable::getFileThrowable::getTrace>
^ThrowableLast updated: Mon, 26 Oct 2026