title: php - fputcsv, new line is not getting inserted at the end of the line
body: <p>I have an array of array and i am trying to insert the array to a csv file.</p>
  
  <p>This is my code</p>
  
  <pre><code>$file = 'a.csv'; //path to the file on disk
  
  
  $fp = fopen($file, 'w') or die('Cannot open file:  '.$file);
  foreach ($column as $fields) {
      print ($fields);
      fputcsv($fp, $fields);
  }
  
  fclose($fp);
  </code></pre>
  
  <p>data is this </p>
  
  <pre><code>$column = (
         (1,2,3), (a,b,c)
  )
  </code></pre>
  
  <p>i want output like this</p>
  
  <pre><code>1,2,3
  a,b,c
  </code></pre>
  
  <p>But i am getting output like this</p>
  
  <pre><code>1,2,3,a,b,c
  </code></pre>