note 88142 deleted from function.str-getcsv by danbrown
| From: | danbrown@php.net | Date: | Mon, 12 Jan 2009 17:20:12 +0000 |
| Subject: | note 88142 deleted from function.str-getcsv by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-149110@lists.php.net to get a copy of this message | ||
Note Submitter: JS London
----
Thanks Rob, have used your code. It needs a minor tweak so that the delimiter option is processed as
it should be. Line 5 should read:
$expr="/$delimiter(?=(?:[^\"]*\"[^\"]*\")*(?![^\"]*\"))/";
// added
instead of:
$expr="/,(?=(?:[^\"]*\"[^\"]*\")*(?![^\"]*\"))/"; //
added
JS, London