Copyright © tutorialspoint.com
void debug_print_backtrace ( void ); |
This function prints a PHP backtrace. It prints the function calls, included/required files and eval()ed stuff.
| Parameter | Description |
|---|---|
| void | NA. |
No value is returned.
Following is the usage of this function:
<?php
function one() {
two();
}
function two() {
three();
}
function three(){
debug_print_backtrace();
}
one();
?>
|
This will produce following result:
#0 three() called at [/var/www/tutorialspoint/php/test.php:7] #1 two() called at [/var/www/tutorialspoint/php/test.php:3] #2 one() called at [/var/www/tutorialspoint/php/test.php:13] |
Copyright © tutorialspoint.com