PHP Classes

CSV Iterator: Manipulate data in CSV files as if they are arrays

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 46%Total: 1,120 All time: 3,362 This week: 455Up
Version License PHP version Categories
csviterator 0.5MIT/X Consortium ...5.0PHP 5, Files and Folders, Data types
Description 

Author

This class can be used to manipulate data in CSV files as if they are arrays.

It can parse and write CSV files when a class object is accessed with array manipulation functions.

Innovation Award
PHP Programming Innovation award nominee
July 2009
Number 6


Prize: One year subscription to the PDF edition of the JSMag magazine
Often applications need to retrieve or update data in files that can be used by spreadsheet like applications. CSV is a common format that can be used for exchanging simple spreadsheet information.

PHP has built-in functions to read and write data from CSV files, but this class provides a simpler solution to read or writing CSV files.

It provides an interface that lets you handle CSV data rows and columns as arrays, so you can use regular PHP array syntax and functions to access CSV data.

Manuel Lemos
Picture of Sam S
Name: Sam S <contact>
Classes: 9 packages by
Country: United States United States
Age: 49
All time rank: 34540 in United States United States
Week rank: 43 Up5 in United States United States Up
Innovation award
Innovation award
Nominee: 8x

  Files folder image Files (3)  
File Role Description
Accessible without login Plain text file CSVIterator.php Class The class file
Accessible without login Plain text file CSVIterator_test.php Example An example usage
Accessible without login Plain text file streamfunctions.php Aux. A series of support functions

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,120
This week:0
All time:3,362
This week:455Up
User Ratings User Comments (1)
 All time
Utility:68%StarStarStarStar
Consistency:62%StarStarStarStar
Documentation:-
Examples:62%StarStarStarStar
Tests:-
Videos:-
Overall:46%StarStarStar
Rank:3132
 
Thats a very good and useful class !! lol
15 years ago (José Filipe Lopes Santos)
70%StarStarStarStar