Login   Register  
PHP Classes
elePHPant
Icontem

Simple CSV transpose: Generate a CSV file with transposed data of other

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (7)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2011-07-29 (3 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 333 All time: 6,325 This week: 1,518Up
Version License PHP version Categories  
cvs-transpose 1.0Freeware3.0Files and Folders
Description Author  

This class can generate a CSV file with transposed data of another CSV file.

It can read a given input CSV file and extract its data into an array.

The class generates a new CSV file with the values of rows switched with values of the columns of the input CSV file.

Innovation Award  
PHP Programming Innovation award nominee
August 2011
Number 8


Prize: One copy of RadPHP XE
CSV files are often used to store data contained in tables. Each column of the table usually has values of data of a certain type.

If you want to know how the data in the table vary according to the values of a given column, you can transpose the table to switch the data in the rows by the columns. This class can transpose the data in a CSV table that way.

Manuel Lemos
Picture of racamiles
Name: racamiles <contact>
Classes: 1 package by
Country: Germany Germany
Age: ???
All time rank: 3296195 in Germany Germany
Week rank: 1821 Up89 in Germany Germany Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Plain text file csv.class.php Class The class file
Accessible without login Plain text file dump.php Aux. Output beautifier
Accessible without login Plain text file index.php Example Examples
Accessible without login Plain text file InputLandscape.csv Data Example input file
Accessible without login Plain text file InputPortrait.csv Data Example input file
Accessible without login Plain text file OutputLandscape.csv Output Sample output
Accessible without login Plain text file OutputPortrait.csv Output Sample output

 Version Control Unique User Downloads Download Rankings  
 0%Total:333All time:6,325
 This week:0This week:1,518Up