PHP Classes

Well - nice try but in the days of iterators this class seems...

Recommend this page to a friend!

      ADO-like CSV Reader  >  All threads  >  Well - nice try but in the days of...  >  (Un) Subscribe thread alerts  
Subject:Well - nice try but in the days of...
Summary:Package rating comment
Messages:2
Author:Timo Henke
Date:2009-06-18 11:11:43
Update:2009-06-18 12:06:35
 

Timo Henke rated this package as follows:

Utility: Not sure
Consistency: Not sure
Examples: Not sure

  1. Well - nice try but in the days of...   Reply   Report abuse  
Picture of Timo Henke Timo Henke - 2009-06-18 11:11:43
Well - nice try but in the days of iterators this class seems useless as of what the examples shows.

Talking about Iterators i found this class using iterators way back:

snipplr.com/view/1986/php5-csv-iter ...

  2. Re: Well - nice try but in the days of...   Reply   Report abuse  
Picture of Jonathan Nichols Jonathan Nichols - 2009-06-18 12:06:35 - In reply to message 1 from Timo Henke
Thanks for the note.

I do have to say, however, that this provides more functionality than a simple iterator. I agree the example does only show the functionality at its most simplistic so I will flesh that out more in the future.

The class does allow for counting records, checking if a line is "non-normal", meaning that it does not match other rows in field count, and generate SQL insert statements.