note 88384 added to function.str-getcsv

From: Date: Wed, 21 Jan 2009 20:37:34 +0000
Subject: note 88384 added to function.str-getcsv
Groups: php.notes 
Request: Send a blank email to php-notes+get-149614@lists.php.net to get a copy of this message
Oops, was testing that code after and found that the single line with sprintf is wrong. I didn't open up the debugger to see what's going on in the stack, but here's a quick fix. $returnString .= sprintf('%2$s'.$_spFormat.'%2$s', $workArray[$i], $enclosure); $returnString .= ($i < ($arraySize-1)) ? $delimiter : $terminator; Just splits it up into two lines. ---- Server IP: 216.235.13.26 Probable Submitter: 24.87.135.74 ---- Manual Page -- http://www.php.net/manual/en/function.str-getcsv.php Edit -- https://master.php.net/note/edit/88384 Del: integrated -- https://master.php.net/note/delete/88384/integrated Del: useless -- https://master.php.net/note/delete/88384/useless Del: bad code -- https://master.php.net/note/delete/88384/bad+code Del: spam -- https://master.php.net/note/delete/88384/spam Del: non-english -- https://master.php.net/note/delete/88384/non-english Del: in docs -- https://master.php.net/note/delete/88384/in+docs Del: other reasons-- https://master.php.net/note/delete/88384 Reject -- https://master.php.net/note/reject/88384 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#149614) next »