Posted By

gregdaynes on 11/30/10


Tagged


Versions (?)

recursive print to file


 / Published in: PHP
 

Print array/object to file

  1. $output = print_r($array, true);
  2. $fp = fopen("/path/to/textfile.txt", "w");
  3. fwrite($fp, $output);
  4. fclose($fp);

Report this snippet  

You need to login to post a comment.