length argument in fgetcsv
Posted: Wed Jan 04, 2006 11:40 pm
From PHP Manual fgetcsv(),
My CSV file has some lines greater than 1000 characters. It still read the fields.
What exactly is the length argument ?
Thanks
I ran the exact code which has the line while (($data = fgetcsv($handle, 1000, ",")) !== FALSE)length (Optional)
Must be greater than the longest line (in characters) to be found in the CSV file (allowing for trailing line-end characters). It became optional in PHP 5. Omitting this parameter (or setting it to 0 in PHP 5.0.4 and later) the maximum line length is not limited, which is slightly slower.
My CSV file has some lines greater than 1000 characters. It still read the fields.
What exactly is the length argument ?
Thanks