PHP Debug

From VVCWiki
Revision as of 20:32, 11 February 2009 by Vvc (talk | contribs) (Initial version)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Add the following code to dump an array/variable

ob_start();
var_dump($details);
$var_dump_out = ob_get_contents();
ob_end_clean();
file_put_contents('/var/log/dump.log', $var_dump_out, FILE_APPEND);