Project

General

Profile

Bug #16966 » 0004957_v2.patch

Administrator Admin, 2007-02-15 16:18

View differences:

t3lib/class.t3lib_div.php (Arbeitskopie)
function csvValues($row,$delim=',',$quote='"') {
reset($row);
$out=array();
while(list(,$value)=each($row)) {
list($valPart) = explode(chr(10),$value);
$valPart = trim($valPart);
$out[]=str_replace($quote,$quote.$quote,$valPart);
foreach ($row as $value) {
$out[] = str_replace($quote, $quote.$quote, trim($value));
}
$str = $quote.implode($quote.$delim.$quote,$out).$quote;
return $str;
(2-2/2)