title: Output to CSV with ' " ' enclosures
body: <p>I want to output a query to a csv file with <code>"</code> enclosures around all fields.</p>
  
  <p>The following:</p>
  
  <pre><code>header('Content-Type: text/csv; charset=utf-8');
  header('Content-Disposition: attachment; filename='.$strFeederFileName.'');
  
  $output = fopen('php://output', 'r+');
  $fileheader = array( "FH", "READY TO PAY", "RTP060620134", "060620134RWKN", "");
  fputcsv($output, $fileheader, ",", '"');
  </code></pre>
  
  <p>Outputs this:</p>
  
  <blockquote>
    <p>FH,"READY TO PAY",RTP060620134,060620134RWKN</p>
  </blockquote>
  
  <p>but I need it to be:</p>
  
  <blockquote>
    <p>"FH","READY TO PAY","RTP060620134","060620134RWKN"</p>
  </blockquote>
  
  <p>Any ideas why it's not adding enclosures to fields <code>1, 3 &amp; 4</code>?</p>