file_get_contents & explode VS file. What is faster?
Posted: Tue Aug 17, 2004 5:08 pm
If I have a .txt file with one record on each file and want to get the values into array, what is faster?
Get the data through 'file_get_contents' which is fast and explode the string or use 'file' which will transform it into array directly?
What is faster for large number of lines - let's say 5000 or 10000 lines?
Thanks!
Tomas
Get the data through 'file_get_contents' which is fast and explode the string or use 'file' which will transform it into array directly?
What is faster for large number of lines - let's say 5000 or 10000 lines?
Thanks!
Tomas