Implements interfaces:
Eg:
foreach(new FileIterator('myFile.txt') as $line) { // Do stuff with $line... }
Or:
foreach(new FileIterator('myFile.txt', 2048) as $key => $line) { // Possibly long lines $lineNum = $key + 1;
// Do stuff... }
[line 53]
[line 67]
[line 46]
[line 60]
[line 74]
[line 80]
FileIterator __construct( string $filename, [ $buffer = 1024])
string current( )
string key( )
void next( )
void rewind( )
bool valid( )