title: Printing php script output to file
body: <p>Is there a native function or set of functions in PHP that will allow me to <code>echo</code> and print php file output into file.</p>
  
  <p>For example code will generate HTML DOM that needs to be put into .html file and then displayed as static page.</p>