title: how to create another sheet while write data using fputcsv in php
body: <p>I am using fputcsv for write  data. It is working fine. what i need is i need to create another sheet like any name and i need to write data on that. How to do that? Please guide. I am not familiar with this.
  This is my code.</p>
  
  <pre><code>$filename = date("Y-m-d").".csv";
  header('Content-type: application/csv');
  header('Content-Disposition: attachment; filename=' . $filename);
  header("Content-Transfer-Encoding: UTF-8");
  $fp = fopen('php://output', 'a');
  $yetToaproveFields = array('job_no'=&gt;'Job Number',
                           'revisioncycle'=&gt; 'Revision Cycle',
                           'version'=&gt;'Version',
                           'is_approved'=&gt;'Approved Status'
  );
  
  fputcsv($fp, $yetToaproveFields);
  
  $notApproveArr = array();
  $notApprovedValues = self::getNotApprovedJobs($_REQUEST);
  foreach ($notApprovedValues as $key=&gt;$value) {
      if ($value['is_approved'] == 1)
          $value['is_approved'] = 'No';
      fputcsv($fp, $value);
  }
  fclose($fp);
  </code></pre>