note 88384 deleted from function.str-getcsv by visualmind

From: Date: Sat, 03 Jul 2010 10:57:51 +0000
Subject: note 88384 deleted from function.str-getcsv by visualmind
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-170681@lists.php.net to get a copy of this message
Note Submitter: Jeremy ---- 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.

« previous php.notes (#170681) next »