PHP Classes

Textarea 2 CSV: Convert a pasted Excel document to the CSV format

Recommend this page to a friend!
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 653 All time: 4,902 This week: 299Up
Version License PHP version Categories
textarea-2-csv 1.0.0GNU General Publi...5.0Text processing, Parsers


This class can Convert a pasted Excel document to the CSV format.

It can parse text of a Excel spreadsheet eventually pasted in a form textarea input and convert it in data in the CSV format.

The converted data may saved to a given file or displayed as the current script output.

The CSV field separator character is configurable.

Innovation Award
PHP Programming Innovation award nominee
January 2013
Number 6
Some applications need that the users supply tabular data, eventually edited in a spreadsheet program like Excel.

The users could upload the spreadsheet file but it may be hard to process it, especially when it is necessary that the data of a specific range of cells.

This class provides an alternative approach for this problem that consists in letting the user copy data from the spreadsheet program and pasting it in a textarea form input.

Then the class is able to parse the input data and return it in a more convenient format for processing by the application.

Manuel Lemos
Picture of Gianluca Zanferrari
  Performance   Level  
Name: Gianluca Zanferrari <contact>
Classes: 19 packages by
Country: The Netherlands The Netherlands
Age: 56
All time rank: 1674 in The Netherlands The Netherlands
Week rank: 62 Up1 in The Netherlands The Netherlands Up
Innovation award
Innovation award
Nominee: 5x

  Files folder image Files  
File Role Description
Plain text file class.textarea2csv.php Class class itself
Accessible without login Plain text file example.textarea2csv.php Example example of use

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:4,902
This week:299Up
User Comments (1)
sdsdsdsd sdsdsd sdsdsd
10 years ago (harry)