CI_DB_utility::csv_from_result()

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.

doc_CodeIgniter
2016-10-15 16:31:27
Comments
Leave a Comment

Please login to continue.