src/Iterator/TextLinesIterator.php
private function traverseWithStrTok()
    {
        $tok = \strtok($this->content, "\r\n");
        while (false !== $tok) {
            $line = $tok;
            $tok = \strtok("\n\r");
            yield $line;
        }
    }
private function traverseWithStrTok()
    {
        $tok = \strtok($this->content, "\r\n");
        while (false !== $tok) {
            $line = $tok;
            $tok = \strtok("\n\r");
            yield $line;
        }
    }
private function traverseWithStrTok ( ) { $ tok = \ strtok ( $ this -> content , "\r\n" ) ; while ( false !== $ tok ) { $ line = $ tok ; $ tok = \ strtok ( "\n\r" ) ; yield $ line ; } }
Uses strtok to split lines. Provides better performance, but skips empty lines.
@return \Generator|string[]
Uses strtok to split lines . Provides better performance but skips empty lines .