我是靠谱客的博主 苗条芝麻,这篇文章主要介绍debug_backtrace,现在分享给大家,希望可以做个参考。

<?php

one();

function one() {
two();
}

function two() {
three();
}

function three() {
print_r( debug_backtrace() );
}

Array
(
[0] => Array
(
[file] => /usercode/file.php
[line] => 10
[function] => three
[args] => Array
(
)

    )

[1] => Array
    (
        [file] => /usercode/file.php
        [line] => 6
        [function] => two
        [args] => Array
            (
            )

    )

[2] => Array
    (
        [file] => /usercode/file.php
        [line] => 3
        [function] => one
        [args] => Array
            (
            )

    )

)

转载于:https://www.cnblogs.com/2018-05-9-ygk/p/10783638.html

最后

以上就是苗条芝麻最近收集整理的关于debug_backtrace的全部内容,更多相关debug_backtrace内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(136)

评论列表共有 0 条评论

立即
投稿
返回
顶部