Home >Backend Development >PHP Tutorial >php debug print stack

php debug print stack

巴扎黑
巴扎黑Original
2016-11-22 11:31:151627browse

<?php
// filename: /tmp/a.php
function a_test($str)
{
    echo "\nHi: $str";
    var_dump(debug_backtrace());
}
a_test(&#39;friend&#39;);
?>
rrree

result

<?php
// filename: /tmp/b.php
include_once &#39;/tmp/a.php&#39;;
?>


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:php array traversalNext article:php array traversal