Return to Snippet

Revision: 20203
at November 9, 2009 13:58 by Tate


Initial Code
ob_start();
var_dump($GLOBALS);
$data = ob_get_clean();
$fp = fopen("textfile.txt", "w");
fwrite($fp, $data);
fclose($fp);

Initial URL
http://www.sitepoint.com/forums/showthread.php?t=452250

Initial Description

                                

Initial Title
Dump an array to a file

Initial Tags

                                

Initial Language
PHP