The 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)
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.
Returns or creates the file descriptor associated with a file.
Reads a row from a CSV file and returns it as an array.
This method normalizes linebreaks to single newline characters (0x0a).
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).
Removes surrounding quotes from a string and normalizes linebreaks.
Adds a warning to or retrieves and resets the warning stack.
Writes a hash into a CSV file.
Checks the configuration given by the user.
Sets or gets the current line being parsed.
Documentation generated on Sun, 30 Jan 2011 05:16:09 +0000 by phpDocumentor 1.4.3