View Single Post
Old 07-24-2009, 10:00 PM   #6 (permalink)
Salathe
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

Quote:
Originally Posted by Sam Granger View Post
You seriously wrote that?
I wrote the documentation, not the class.

Quote:
Originally Posted by Sam Granger View Post
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.
Salathe is offline  
Reply With Quote