File_CSVThe File_CSV package allows reading and creating of CSV data and files.
$Horde: framework/File_CSV/CSV.php,v 1.4.2.15 2009/01/06 15:23:05 jan Exp $
Copyright 2002-2003 Tomas Von Veschler Cox <cox@idecnet.com> Copyright 2005-2009 The Horde Project (http://www.horde.org/)
This source file is subject to version 2.0 of the PHP license, that is bundled with this package in the file LICENSE, and is available at through the world-wide-web at http://www.php.net/license/2_02.txt. If you did not receive a copy of the PHP license and are unable to obtain it through the world-wide-web, please send a note to license@php.net so we can mail you a copy immediately.
Located in /File_CSV/CSV.php (line 38)
static resource
getPointer
(string $file, &$conf, [string $mode = HORDE_FILE_CSV_MODE_READ], array $conf)
static discoverFormat (line 54)
Discovers the format of a CSV file (the number of fields, the separator, the quote string, and the line break).
We can't use the auto_detect_line_endings PHP setting, because it's not supported by fgets() contrary to what the manual says.
static getPointer (line 503)
Returns or creates the file descriptor associated with a file.
read (line 156)
Reads a row from a CSV file and returns it as an array.
This method normalizes linebreaks to single newline characters (0x0a).
readQuoted (line 233)
Reads a row from a CSV file and returns it as an array.
This method is able to read fields with multiline data and normalizes linebreaks to single newline characters (0x0a).
unquote (line 433)
Removes surrounding quotes from a string and normalizes linebreaks.
warning (line 478)
Adds a warning to or retrieves and resets the warning stack.
write (line 393)
Writes a hash into a CSV file.
_checkConfig (line 539)
Checks the configuration given by the user.
_line (line 457)
Sets or gets the current line being parsed.
Documentation generated on Sun, 30 Jan 2011 05:16:09 +0000 by phpDocumentor 1.4.3