PHP debug_print_backtrace() 函数

PHP 教程 · 2019-01-24 14:28:04

定义和用法

debug_print_backtrace() 函数打印 backtrace。

该函数显示由 debug_print_backtrace() 函数代码生成的数据。

语法


debug_print_backtrace()


实例


<?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");
?>

上面代码的输出如下所示:


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


点击查看所有 PHP 教程 文章: https://codercto.com/courses/l/5.html

查看所有标签

网络心理学

网络心理学

玛丽•艾肯 (Mary Aiken) / 中信出版社 / 2018-8-1 / CNY 58.00

《五十度灰》如何利用恋物心理,成为全球仅次于《圣经》的畅销读物? 为什么相对于亲朋好友,你更愿意向网络陌生人敞开心扉? 上网时总感觉时间飞逝,原来是网络的时间扭曲效应? 网络游戏中埋伏了哪些“上瘾”机关,暗中操控着你的行为? 为什么科技越发达,我们就越怕死? ...... 网络空间是一个巨大的兔子洞,里面集合了新奇、刺激、喜悦、痛苦、不安等各种元素。在日复一日的......一起来看看 《网络心理学》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

html转js在线工具
html转js在线工具

html转js在线工具