The following code echos "Null" but how is this possible?
The fopen
returns not false (i.e. a valid file handler) but the fgetcsv
returns NULL which means invalid file handler given. I don't understand this.
if ($fh = fopen("2014_01.csv", 'r') !== FALSE) {
if ($test = fgetcsv($fh, 0, ';') == NULL)
echo "Null";
fclose($fh);
} else
echo "fh error";