Any function to take an array of strings and return a CSV line?
<p>I have an array of strings and want a way to create a CSV line from them. Something like:</p>

<pre><code>$CSV_line = implode(',',$pieces);
</code></pre>

<p>Will not work as the pieces may contain comma and double quotes.<br>
Is there a PHP built in function that takes the pieces and return a well formatted CSV line?</p>

<p>Thanks,<br>
Roge</p>
