Php-function-debug-print-backtrace

提供:Dev Guides
移動先:案内検索

PHP-関数debug_print_backtrace()

構文

void debug_print_backtrace ( void );

定義と使い方

この関数は、PHPバックトレースを出力します。 関数呼び出し、含まれる/必要なファイル、eval()されたものを出力します。

パラメーター

Sr.No Parameter & Description
1

void

NA.

戻り値

値は返されません。

以下は、この機能の使用法です-

<?php
   function one() {
      two();
   }

   function two() {
      three();
   }

   function three(){
      debug_print_backtrace();
   }
   one();
?>

これは、次の結果を生成します-

#0  three() called at [/var/www/finddevguides/php/test.php:7]
#1  two() called at [/var/www/finddevguides/php/test.php:3]
#2  one() called at [/var/www/finddevguides/php/test.php:13]