i have a quick question about php functions for the specific purpose of loading files into an array. I do not use file() as it was greatly reduced in speed in newer vers i use fgets btw..
Question: calling functions to get a line like fgets goes quicker on lines that have less data?.. should be obvious or??
and another question to ponder
Question: it would be nice if there was a way to get lines that are not from the start of a file, but now it is impossible to for example load a text file like this:
where the pointer goes to array 2 bananas and downwards. i have yet to seen this to be possible, so i guess thats why im asking a question about it. it would be amazing if developers or an existing function exists to get a file into an array at midway line or whichever line and downwards..
Question: calling functions to get a line like fgets goes quicker on lines that have less data?.. should be obvious or??
and another question to ponder
Question: it would be nice if there was a way to get lines that are not from the start of a file, but now it is impossible to for example load a text file like this:
Code:
apples
carrots
bananas
pears