function one()
{
two();
}
function two()
{
three();
}
function three()
{
print_string('The quick fox jumps over the lazy dog');
}
function print_string($s)
{
echo "string: $s";
echo "<pre>";
debug_print_backtrace();
echo "</pre>";
}
one();
/*
run:
string: The quick fox jumps over the lazy dog
#0 print_string(The quick fox jumps over the lazy dog) called at
[C:\xampp\htdocs\knowrex.com\test.php:20]
#1 three() called at [C:\xampp\htdocs\knowrex.com\test.php:15]
#2 two() called at [C:\xampp\htdocs\knowrex.com\test.php:10]
#3 one() called at [C:\xampp\htdocs\knowrex.com\test.php:32]
*/