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

Throwable::getTraceAsString

PHP function Edit on GitHub ✎

(PHP 7, PHP 8)

Gets the stack trace as a string

Description

Throwable::getTraceAsString(): string

Parameters Parameters

Return Values

Returns the stack trace as a string.

See Also

  • Exception::getTraceAsString

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