PHP函数debug_print_backtrace介绍
定义和用法
debug_print_backtrace() 函数输出 backtrace。
语法
debug_print_backtrace()
例子
<?phpfunction 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]
本文出自:琅枫个人博客。如需转载请注明出处!
本文出处:"https://www.phpfeng.cn/function/230.html"
如果您觉得文章对你有帮助,可以进行打赏。
打赏多少,您高兴就行,谢谢您对琅枫博客的支持! ~(@^_^@)~
微信打赏

支付宝打赏
