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
数据结构与算法:Python语言描述
裘宗燕 / 机械工业出版社 / 2016-1 / CNY 45.00
本书基于Python语言介绍了数据结构与算法的基本知识,主要内容包括抽象数据类型和Python面向对象程序设计、线性表、字符串、栈和队列、二叉树和树、集合、排序以及算法的基本知识。本书延续问题求解的思路,从解决问题的目标来组织教学内容,注重理论与实践的并用。一起来看看 《数据结构与算法:Python语言描述》 这本书的介绍吧!