Combining 2 CSV files
<p>I'm trying to combine two CSV files in PHP. I'm looking for perfect method. Here's my code so far:</p>

<pre><code>$one = fopen('data5.csv', 'r');
$two = fopen('userdata.csv', 'r');

$final = fopen('final_data.csv', 'a');

$temp1 = fread($one, filesize("data5.csv"));
$temp2 = fread($two, filesize("userdata.csv"));

fwrite($final, $temp1); 
fwrite($final, $temp2);
</code></pre>
