note 52919 added to function.fgetcsv
| From: | BobKolk at osu1 dot php dot net | Date: | Tue, 17 May 2005 16:50:13 +0000 |
| Subject: | note 52919 added to function.fgetcsv | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-89557@lists.php.net to get a copy of this message | ||
Dave Meiners above example is great, except that you need to need to add one to the final length to
account for EOL. So it'd be:
while ($data = fgetcsv($handle, ($length+1), ","))
----
Manual Page -- http://www.php.net/manual/en/function.fgetcsv.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+52919
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52919&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52919&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52919&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52919&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52919&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+52919&report=yes
Search -- http://master.php.net/manage/user-notes.php