note 68597 added to function.fputcsv
| From: | php-general at lists dot php dot net | Date: | Thu, 03 Aug 2006 00:09:37 +0000 |
| Subject: | note 68597 added to function.fputcsv | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-115498@lists.php.net to get a copy of this message | ||
It's unrealistic to require the field enclosure to be one character because it's very
common to have "empty string" as the field delimiter (especially when TAB is used as field
delimiter).
I tried to use "\0" as the field enclosure, hoping that'd be interpreted as an empty
string, but fputcsv (in PHP5) translated it into literal.
By the way, fputcsv wrongly adds the field enclosures whenever a field contains a space. The
expected behavior should be adding the field enclosures when a field contains a field delimiter.
----
Server IP: 216.194.113.175
Probable Submitter: 65.207.113.177
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.fputcsv.php
Edit -- https://master.php.net/note/edit/68597
Del: integrated -- https://master.php.net/note/delete/68597/integrated
Del: useless -- https://master.php.net/note/delete/68597/useless
Del: bad code -- https://master.php.net/note/delete/68597/bad+code
Del: spam -- https://master.php.net/note/delete/68597/spam
Del: non-english -- https://master.php.net/note/delete/68597/non-english
Del: in docs -- https://master.php.net/note/delete/68597/in+docs
Del: other reasons-- https://master.php.net/note/delete/68597
Reject -- https://master.php.net/note/reject/68597
Search -- https://master.php.net/manage/user-notes.php