csv_from_result($query[, $delim = ', '[, $newline = "n"[, $enclosure = '"']]])
Parameters:
$query (object) – A database result object
$delim (string) – The CSV field delimiter to use
$newline (string) – The newline character to use
$enclosure (string) – The enclosure delimiter to use Returns:
The generated CSV file as a string Return type:
string
Translates a database result object into a CSV document.