title: PHP, fputcsv, Want to write each array as a column not a row
body: <p>Simple Example:</p>
  
  <pre><code>$a = array(1,2,3,4);
  $b = array(10,20,30,40);
  $c = array(100,200,300,400);
  </code></pre>
  
  <p>If I execute the following:</p>
  
  <pre><code>$fp = fopen('somefile.csv','w');
  fputcsv($fp,$a);
  fputcsv($fp,$b);
  fputcsv($fp,$c);
  fclose($fp);
  </code></pre>
  
  <p>I get a file that looks like this:</p>
  
  <pre><code>1,2,3,4
  10,20,30,40
  100,200,300,400
  </code></pre>
  
  <p>As I would expect. However what I want is:</p>
  
  <pre><code>1,10,100
  2,20,200
  3,30,300
  4,40,400
  </code></pre>
  
  <p>Is this possible without just looping and writing each index from each array?</p>