I want to send an email with a stack trace. What's a good way to convert debug_stacktrace() into a string?
If I do implode("\n", debug_backtrace())) I get a repetition of Array Array Array, I can also try to make things more complicated, e.g. writing code to handle specific parts, or I can try to capture the output of debug_print_backtrace into a variable.
But ideally I'd like a simple solution for this. Is there one?
debug_print_backtrace