note 83027 added to function.split

From: Date: Wed, 07 May 2008 15:37:33 +0000
Subject: note 83027 added to function.split
Groups: php.notes 
Request: Send a blank email to php-notes+get-139130@lists.php.net to get a copy of this message
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. ---- Server IP: 69.147.83.197 Probable Submitter: 71.4.246.104 ---- Manual Page -- http://www.php.net/manual/en/function.split.php Edit -- https://master.php.net/note/edit/83027 Del: integrated -- https://master.php.net/note/delete/83027/integrated Del: useless -- https://master.php.net/note/delete/83027/useless Del: bad code -- https://master.php.net/note/delete/83027/bad+code Del: spam -- https://master.php.net/note/delete/83027/spam Del: non-english -- https://master.php.net/note/delete/83027/non-english Del: in docs -- https://master.php.net/note/delete/83027/in+docs Del: other reasons-- https://master.php.net/note/delete/83027 Reject -- https://master.php.net/note/reject/83027 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#139130) next »