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

Throwable::getLine

PHP function Edit on GitHub ✎

(PHP 7, PHP 8)

Gets the line on which the object was instantiated

Description

Throwable::getLine(): int

Returns the line number where the thrown object was instantiated.

Parameters Parameters

Return Values

Returns the line number where the thrown object was instantiated.

See Also

  • Exception::getLine

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