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

Throwable::getTrace

(PHP 7, PHP 8)

Throwable::getTrace — Gets the stack trace

Description

public function Throwable::getTrace(): array

Returns the stack trace as an array.

Parameters

This function has no parameters.

Return Values

Returns the stack trace as an array in the same format as debug_backtrace().

See Also


<Throwable::getLineThrowable::getTraceAsString>
^ThrowableLast updated: Mon, 26 Oct 2026