Bug #16966 » 0004957_v2.patch
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;
|
- « Previous
- 1
- 2
- Next »