title: Right appraoch to use to Create csv out of php array
body: <p>When i var_dump the contents of my array, i get the following results. I would like to be able to put the following contents into a csv file. For simplicity reasons, i have not displayed all the values of the array </p>
  
  <pre><code> Array
   (
  [0] =&gt; Array
      (
          [0] =&gt; NEWS 1
          [1] =&gt; 00
          [2] =&gt; 0
      )
  
  [1] =&gt; Array
      (
          [0] =&gt; NEWS 1
          [1] =&gt; 01
          [2] =&gt; 0
      )
  
  [2] =&gt; Array
      (
          [0] =&gt; NEWS 1
          [1] =&gt; 02
          [2] =&gt; 0
      )
  
  [3] =&gt; Array
      (
          [0] =&gt; NEWS 1
          [1] =&gt; 03
          [2] =&gt; 0
      )
  
  [4] =&gt; Array
      (
          [0] =&gt; NEWS 1
          [1] =&gt; 04
          [2] =&gt; 0
      )
  )
  </code></pre>
  
  <p>I would like to be able to insert the contents of that array into a csv file. My final csv file should like this</p>
  
  <pre><code>NEWS 1,0,0,0,0,0
  </code></pre>
  
  <p>I have tried several methods without sucess. So useless to post my code here. I would like to start from scratch. If some one can advise me on the right apparoach to use or propose me some code, it will be very great</p>