X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

PHP debug_print_backtrace() Function


PHP Error Reference Complete PHP Error Reference

Definition and Usage

The debug_print_backtrace() function prints a backtrace.

This function displays data from the code that led up to the debug_print_backtrace() function.

Syntax

debug_print_backtrace()


Example

<?php
function one($str1, $str2)
  {
  two("Glenn", "Quagmire");
  }
function two($str1, $str2)
  {
  three("Cleveland", "Brown");
  }
function three($str1, $str2)
  {
  debug_print_backtrace();
  }

one("Peter", "Griffin");
?>

The output of the code above should be something like this:

#0 three(Cleveland, Brown) called at [C:\webfolder\test.php:8]
#1 two(Glenn, Quagmire) called at [C:\webfolder\test.php:4]
#2 one(Peter, Griffin) called at [C:\webfolder\test.php:15]


PHP Error Reference Complete PHP Error Reference

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates FREE Website Templates Free HTML Templates

SHARE THIS PAGE

facebook