After looking around a bit I have yet to find a way to read a specified line from a file without doing one of the following:
- fopen()
- looping every line until reaching the desired line
Desired functionality:
- fopen($file)
- imaginary function call `fgetcsvline($lineNumber)` would returns the contents of line $lineNumber
Anyone know a solution for this?
Update: Derp, how could I forget about ‘The League’? http://csv.thephpleague.com/