Tutorials Point


  Learning PHP
  Advanced PHP
  PHP Function Reference
  PHP Useful Resources
  Selected Reading

Copyright © 2014 by tutorialspoint



  Home     References     Discussion Forums     About TP  

PHP Function debug_print_backtrace()


previous

Advertisements

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

ParameterDescription
voidNA.

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]

previous Printer Friendly

Advertisements


  

Advertisements