PHP Classes

Bs_CsvUtil.class.php: comma separated values - read and write

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
Not enough user ratingsTotal: 1,374 All time: 2,827 This week: 488Up
Version License Categories
bs_csvutil 1.0BSD LicenseFiles and Folders
Description 

Author

Features:
supports any separator char sequence, default is semicolon ";".
supports separator characters in the values. eg you use a ; as separator, your line may look like
blah;hello world;"foo";"foo;bar";"this is a ""string""";got it?;foo
as you can see, the values can be in "quotes". if your text uses quotes itself as in the "string"
example, they are escaped in ms-style with 2 quotes. and by using quotes we can even have your
separator inside the text (example "foo;bar").
line breaks. a csv line may spread over multiple lines using crlf in a field value.
see the checkMultiline param and the _checkMultiline() method.

Picture of blueshoes
Name: blueshoes <contact>
Classes: 2 packages by
Country: ???

  Files folder image Files (2)  
File Role Description
Plain text file Bs_CsvUtil.class.php Class class file
Accessible without login Plain text file Bs_CsvUtil_PhpUnit.class.php Test php unit test, needs blueshoes installed

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,374
This week:0
All time:2,827
This week:488Up