note 88297 added to function.str-getcsv
| From: | joelfromlollypins dot com at osu1 dot php dot net | Date: | Mon, 19 Jan 2009 17:05:37 +0000 |
| Subject: | note 88297 added to function.str-getcsv | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-149469@lists.php.net to get a copy of this message | ||
In the code below, the following line should be changed from
$fields = preg_replace("/^\"(.*)\"$/","$1",$fields); //added
to
$fields = preg_replace("/^\"(.*)\"$/s","$1",$fields); //added
Added the /s modifier so that strings like:
"
text"
will match.
----
Server IP: 216.235.13.26
Probable Submitter: 208.124.206.146
----
Manual Page -- http://www.php.net/manual/en/function.str-getcsv.php
Edit -- https://master.php.net/note/edit/88297
Del: integrated -- https://master.php.net/note/delete/88297/integrated
Del: useless -- https://master.php.net/note/delete/88297/useless
Del: bad code -- https://master.php.net/note/delete/88297/bad+code
Del: spam -- https://master.php.net/note/delete/88297/spam
Del: non-english -- https://master.php.net/note/delete/88297/non-english
Del: in docs -- https://master.php.net/note/delete/88297/in+docs
Del: other reasons-- https://master.php.net/note/delete/88297
Reject -- https://master.php.net/note/reject/88297
Search -- https://master.php.net/manage/user-notes.php