Я активно использую git для своих web проектовв netbeans, курсач на C# в VisualStudio это был мой первый опыт работы в этой среде.
$arr = [];
while($row = mysql_fetch_array($res)){
$arr[]['product_id'] = $row['product_id'];
$arr[]['model'] = $row['model'];
$arr[]['sku'] = $row['sku'];
$arr[]['price'] = $row['price'];
$arr[]['image'] = $row['image'];
$arr[]['manufacturer_id'] = $row['manufacturer_id'];
}
$fp = fopen('file.csv', 'w');
foreach($arr as $key => $str)
{
fputcsv($fp, $str, ';');
}
fclose($fp);
$arr = [];
while($row = mysql_fetch_array($res)){
$arr[]['product_id'] = $row['product_id'];
$arr[]['model'] = $row['model'];
$arr[]['sku'] = $row['sku'];
$arr[]['price'] = $row['price'];
$arr[]['image'] = $row['image'];
$arr[]['manufacturer_id'] = $row['manufacturer_id'];
}
$fp = fopen('file.csv', 'w');
fputcsv($fp, $arr, ';');
fclose($fp);