将debug_backtrace()分配给PHP中的变量 [英] Assign debug_backtrace() To a variable in PHP
本文介绍了将debug_backtrace()分配给PHP中的变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图通过电子邮件给我 debug_backtrace()
,但是它只是打印出数组。
我需要将其分配给变量,以便var_export可以使用它。
我该怎么做?
I tryed to email me debug_backtrace()
but it just prints out the array.
I need to assign it to a variable so that var_export can work with it.
How can i do that?
推荐答案
发送以下$ msg:
$msg = print_r( debug_backtrace( ) , true ) ;
未经测试,但这是一种方法。
Not tested, but that's one way.
这篇关于将debug_backtrace()分配给PHP中的变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文