Return to Snippet

Revision: 36907
at November 30, 2010 05:59 by gregdaynes


Initial Code
$output = print_r($array, true);
$fp = fopen("/path/to/textfile.txt", "w");
fwrite($fp, $output);
fclose($fp);

Initial URL

                                

Initial Description
Print array/object to file

Initial Title
recursive print to file

Initial Tags

                                

Initial Language
PHP