debug.php
Tags
Table of Contents
Functions
- debug_backtrace_depth() : int
- Returns the current stack trace depth.
Functions
debug_backtrace_depth()
Returns the current stack trace depth.
debug_backtrace_depth([int $limit = 0 ]) : int
Parameters
- $limit : int = 0
-
This parameter can be used to limit the number of stack frames scanned. The default value of
0will scan all stack frames.
Return values
int —The depth of the current stack trace, optionally limited by limit.