Best way to doing this in php
<p>I'm fetching data from database and suppose there is 23 columns in a table then I have to write 23 lines to set value.
Is there any other short way to do this?</p>

<p>In the example below there are only 15 columns and I wrote 15 lines. any short way?</p>

<pre><code>while( $row = mysql_fetch_array( $export ) )
    {
        $line = '';
        $line.=setValue($row[0]);
        $line.=setValue($row[1]);
        $line.=setValue($row[2]);
        $line.=setValue($row[3]);
        $line.=setValue($row[4]);
        $line.=setValue($row[5]);
        $line.=setValue($row[6]);
        $line.=setValue($row[7]);
        $line.=setValue($row[8]);
        $line.=setValue($row[9]);
        $line.=setValue($row[10]);
        $line.=setValue($row[11]);
        $line.=setValue($row[12]);
        $line.=setValue($row[13]);
        $line.=setValue($row[14]);

    }
</code></pre>
