- ⌂ php_util
- Static Methods
php_util::get_trace_string()
Returns a call stack back trace as a string for debugging.
Prototype
string get_trace_string(int $max = 0, int $offset = 0)
Parameters
- max - Maximum number of calls to go back (0 = unlimited).
- offset - Index into trace stack to list from (0 = from beginning)
Example
$trace = \io_comand_util\php_util::get_trace_string();
echo($trace);