$variable = "Hello World"; var_dump($variable); // Outputs string(11) "Hello World"
function foo() { bar(); } function bar() { debug_print_backtrace(); } foo();In this example, PHP Debug's debug_print_backtrace() function is called within the bar() function to display a backtrace of all function calls made leading up to the current function. Package/library: Xdebug.