Syntax
void debug_print_backtrace ( void ); |
Definition and Usage
This function prints a PHP backtrace. It prints the function calls, included/required files and eval()ed stuff.
Paramters
Parameter | Description |
---|---|
void | NA. |
Return Value
No value is returned.
Example
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] |
No comments:
Post a Comment