文件输出debug

file_put_contents('/tmp/heat.log', var_export($mainArr, true),FILE_APPEND);
原文地址:https://www.cnblogs.com/a-flydog/p/5583606.html