733
734
735
736
737
738
739
740
741
742
743
744
745
746
|
}
}
static public function row_to_csv($row)
{
$row = (array) $row;
array_walk($row, function ($field) {
return strtr($field, ['"' => '""', "\r\n" => "\n"]);
});
return sprintf("\"%s\"\r\n", implode('","', $row));
}
}
|
|
|
|
733
734
735
736
737
738
739
740
741
742
743
744
745
746
|
}
}
static public function row_to_csv($row)
{
$row = (array) $row;
array_walk($row, function (&$field) {
$field = strtr($field, ['"' => '""', "\r\n" => "\n"]);
});
return sprintf("\"%s\"\r\n", implode('","', $row));
}
}
|