note 83027 deleted from function.split by felipe

From: Date: Thu, 08 May 2008 03:43:43 +0000
Subject: note 83027 deleted from function.split by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-139162@lists.php.net to get a copy of this message
Note Submitter: richard dot thomas at psysolutions dot com ---- My apologies, I appear to have unfairly maligned Lewis's code. I was attempting to parse a form submission which, of course, uses \r\n for end-of-line. Since the quote was not the last character in the field, it was maintained in the array. The answer, of course, is to strip \r from the input with str_replace (or similar). Once I did this, the CSV parsed fine. If the mods would be kind enough to delete this and my previous post, it'd be appreciated.

« previous php.notes (#139162) next »