07-24-2009, 10:00 PM
|
#6 (permalink)
|
|
Moderateur
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
|
Quote:
Originally Posted by Sam Granger
You seriously wrote that?
|
I wrote the documentation, not the class.
Quote:
Originally Posted by Sam Granger
It worked a charm! How fast is it compared to going down the file_get_contents & explode method?
|
I don't know definitively but I'd guess slower since SplFileObject does a lot more than a quick file_get_contents/explode will. But I can't see it being a bottleneck and not something to worry about. The ability to foreach over the data and cater for field delimiters, escape characters, etc. simply wins it for me.
|
|
|
|