note 92416 added to function.fputcsv
| From: | Anonymous at osu1 dot php dot net | Date: | Thu, 23 Jul 2009 15:46:21 +0000 |
| Subject: | note 92416 added to function.fputcsv | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-158638@lists.php.net to get a copy of this message | ||
For alex /-\-l- windeagle DOT org:
This:
<?php
fputcsv($fp, $foo, '\t'); //won't work
?>
Doesn't work, because simple quotes take what's inside literally, and the backslash
isn't taken as an escape, but as the backslash character.
This should work: (although I didn't test it)
<?php
fputcsv($fp, $foo, "\t"); //should work
?>
----
Server IP: 69.147.83.197
Probable Submitter: 190.191.5.202
----
Manual Page -- http://www.php.net/manual/en/function.fputcsv.php
Edit -- https://master.php.net/note/edit/92416
Del: integrated -- https://master.php.net/note/delete/92416/integrated
Del: useless -- https://master.php.net/note/delete/92416/useless
Del: bad code -- https://master.php.net/note/delete/92416/bad+code
Del: spam -- https://master.php.net/note/delete/92416/spam
Del: non-english -- https://master.php.net/note/delete/92416/non-english
Del: in docs -- https://master.php.net/note/delete/92416/in+docs
Del: other reasons-- https://master.php.net/note/delete/92416
Reject -- https://master.php.net/note/reject/92416
Search -- https://master.php.net/manage/user-notes.php