How to use debug print backtrace in PHP

This article describe about debug_print_backtrace() function in PHP.
  • 1981

debug_print_backtrace() function

This function print a backtrace.

Syntax

debug_print_backtrace()

 

Example

 

<html>
<body>
<?php
function one($str1, $str2)
{
two("Glenn", "Quagmire");
}
function two($str1, $str2)
{
three("Cleveland", "Brown");
}
function three($str1, $str2)
{
debug_print_backtrace();
}
one("Peter", "Griffin");
?>
</body>
</html>

Output

pic16.jpg

You may also want to read these related articles Click here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2019 DotNetHeaven. All rights reserved.