George Schlossnagle wrote: > Is there a concensus on how arguments should be printed out?
I quite like the output of foreach ($backtrace as $step) { if (!empty($step['args'])) { foreach ($step['args'] as $arg) { $args = isset($args) ? $args . ', ' : ''; $args .= var_export($arg, true); } } else { $args = ''; } $args = str_replace(array("\n", ',)'), array('', ')'), $args); printf( "%s%s(%s) [%s:%s]\n", isset($step['class']) ? $step['class'] . '::' : '', $step['function'], $args, $step['file'], $step['line'] ); } -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/ -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php