Outputs a stack trace based on the supplied options.
public static trace ( array $options = [] ) : string | array | null | ||
$options | array | Format for outputting stack trace. Available options are: - `'args'`: A boolean indicating if arguments should be included. - `'depth'`: The maximum depth of the trace. - `'format'`: Either `null`, `'points'` or `'array'`. - `'includeScope'`: A boolean indicating if items within scope should be included. - `'scope'`: Scope for items to include. - `'start'`: The depth to start with. - `'trace'`: A trace to use instead of generating one. |
return | string | array | null | Stack trace formatted according to `'format'` option. |