PHP 打印调试信息

1.将输出的数组存入文件,比如debug_trace()的输出:

$debug_info = print_r(debug_backtrace(),true);
file_put_contents("log.txt",$debug_info);
View Code

 

posted @ 2016-12-17 11:11  GoodByeZ  阅读(1364)  评论(0编辑  收藏  举报