Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

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

(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