Save (var_dump) Object to file

ob_start();
var_dump($result);
$data = ob_get_clean();
$fp = fopen(“textfile.txt”, “w”);
fwrite($fp, $data);
fclose($fp);

This entry was posted in   PHP.
Bookmark the   permalink.

admin has written 114 articles

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>