Login   Register  
PHP Classes
elePHPant
Icontem

csvFieldDump: Pull only the fields you want from a csv file.

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 (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2003-09-10 (10 years ago) RSS 2.0 feedStarStar 39%Total: 1,069 All time: 3,208 This week: 1,542Up
Version License Categories  
csvfielddump 1.0GNU General Public Lice...Files and Folders
Description Author  

This class can pull only the specified fields from a csv file. you can specify either the field numbers or field names to pull out. Also it can just show you a numbered list of the csv headers.

Also in the class i've added some code at the bottom which allows this class to be used on the command line by passing various flags to it.
if you make the script executable try ./script -h for help.

Picture of Mark Williamson
Name: Mark Williamson <contact>
Classes: 5 packages by
Country: United Kingdom United Kingdom
Age: ???
All time rank: 21612 in United Kingdom United Kingdom
Week rank: 1088 Down42 in United Kingdom United Kingdom Down

  Files folder image Files  
File Role Description
Accessible without login Plain text file csvfd.1m Doc. man file for csvfd (csvfielddump)
Plain text file csvfielddump Class class file - and its a php cgi - use ./csvfielddump -h for help

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,069All time:3,208
 This week:0This week:1,542Up
 User Ratings  
 
 All time
Utility:58%StarStarStar
Consistency:50%StarStarStar
Documentation:50%StarStarStar
Examples:-
Tests:-
Videos:-
Overall:39%StarStar
Rank:2161