title: how to remove quotes from csv in php
body: <p>I have a array that i am getting from DB. In this project, im converting my array to csv file. But every time i open the file i get double quoetes. I have tried with str_replace and preg_place with no succes. How can i remove quotes</p>
  
  <p>this is my csv code</p>
  
  <pre><code>$query = "SELECT t.transactiontime, t.restaurant_id, t.transactionid, t.cardid, emd.m_field_id_2, t.pricebefordiscount, t.menucard_cut
  from transactions as t
  left join exp_member_data AS emd ON (t.cardid-10000000 = emd.member_id) order by t.transactiontime desc limit 50";
  
  $transactions_query = ee()-&gt;db-&gt;query($query);
  $transactions_result = $transactions_query-&gt;result_array();
  
  $transaction_array = array();
  foreach ($transactions_result as $key) 
  {
    $date = new DateTime($key['transactiontime']);
    $newdate = $date-&gt;format('d.m.Y');
  
  
   $transaction_array[] = array(
      'transactiontime' =&gt; $newdate,
      'restaurant_id' =&gt;  $key['restaurant_id'], 
      'member' =&gt; $key['transactionid'] . " " . $key['m_field_id_2'],
      'pricebefordiscount' =&gt; $key['pricebefordiscount']/100,
      'menucard_cut' =&gt; $key['menucard_cut']
      ); 
  
  
  }
  
  
  function outputCSV($data) 
      {
  
  $outstream = fopen("php://output", 'w');
  
  
  
  function __outputCSV(&amp;$vals, $key, $filehandler) 
  {
      fputcsv($filehandler, $vals, ';');
  }
  
  array_walk($data, '__outputCSV', $outstream);
  
  fclose($outstream);
  }
  
  outputCSV($transaction_array);
  </code></pre>
  
  <p>my output</p>
  
  <pre><code>19.08.2013;47657;"12459 Abdullahi";60;
  19.08.2013;47658;"12455 atima";30;
  </code></pre>