note 19948 added to function.fscanf
| From: | eugene at pro-access dot com | Date: | Sat, 16 Mar 2002 05:39:28 +0000 |
| Subject: | note 19948 added to function.fscanf | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-27850@lists.php.net to get a copy of this message | ||
If you want to read text files in csv format or the like(no matter what character the fields are
separated with), you should use fgetcsv() instead. When a text for a field is blank, fscanf() may
skip it and fill it with the next text, whereas fgetcsv() correctly regards it as a blank field.
--
http://www.php.net/manual/en/function.fscanf.php
http://master.php.net/manage/user-notes.php?action=edit+19948
http://master.php.net/manage/user-notes.php?action=delete+19948
http://master.php.net/manage/user-notes.php?action=reject+19948