Hey guys,
So I'm using the PHP function fgetcsv to parse a .csv file (comma separated, fields are enclosed by "") and import it to a MySQL. The problem is, a certain field is always empty, even though it should sometimes contain "0". So I'm guessing the function consider "" and "0" as null values, but it's quite problematic for me. Any ideas?
EDIT - The code :
$handle = fopen("/home/simon/projet-web/Quebec.csv", "r");
if ($handle)
{
while($line = fgetcsv($handle, 0, ",", "\""))
{
if ($line[55] === "0")
echo $line[55] . " / " . $line[4] . "<br />";
[...]