Generate a backtrace in PHP
Description
The following code shows how to generate a backtrace.
Example
/* w w w . j a va2 s . com*/
<?php
function one($str1, $str2){
two("XML", "CSS");
}
function two($str1, $str2){
three("Main", "Function");
}
function three($str1, $str2){
print_r(debug_backtrace());
}
one("XML", "HTML");
?>
The code above generates the following result.