I have an $row that is an array. Im writing to a csv file which I opened in Excel. Problem is, that Excel is treating the Phone column as a number. So I did $row['Phone'] = '"'.$row['Phone'].'"';
Code: Select all
$row['Phone'] = '"'.$row['Phone'].'"';
fputcsv ($h, $row)."\n";Code: Select all
value5,"""56565656""",value7Code: Select all
value5,"56565656",value7Code: Select all
value5,"56565656",value7How to I 'tell' fgetcsv not enter 3 quotes but only 1 ?
Thanks