Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 310 and 401] [Versions 311 and 401] [Versions 39 and 401]

(no description)

File Size: 144 lines (4 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 7 functions

  rs2csv()
  rs2csvfile()
  rs2csvout()
  rs2tab()
  rs2tabfile()
  rs2tabout()
  _adodb_export()

Functions that are not part of a class:

rs2csv(&$rs,$addtitles=true)   X-Ref
Export recordsets in several formats.

AS VARIABLE
$s = rs2csv($rs); # comma-separated values
$s = rs2tab($rs); # tab delimited

TO A FILE
$f = fopen($path,'w');
rs2csvfile($rs,$f);
fclose($f);

TO STDOUT
rs2csvout($rs);

This file is part of ADOdb, a Database Abstraction Layer library for PHP.


rs2csvfile(&$rs,$fp,$addtitles=true)   X-Ref
No description

rs2csvout(&$rs,$addtitles=true)   X-Ref
No description

rs2tab(&$rs,$addtitles=true)   X-Ref
No description

rs2tabfile(&$rs,$fp,$addtitles=true)   X-Ref
No description

rs2tabout(&$rs,$addtitles=true)   X-Ref
No description

_adodb_export(&$rs,$sep,$sepreplace,$fp=false,$addtitles=true,$quote = '"',$escquote = '"',$replaceNewLine = ' ')   X-Ref
No description