class LineReader implements Transient

internal  
 

Constants

private READ_SIZE

Methods

string
readLine(StreamInterface $stream)

Read a line including its LF, or the final unterminated line at EOF.

static Generator
lines(StreamInterface $stream)

Read lines without LF or its preceding CR, preserving an unterminated line.

Details

at line 28
string readLine(StreamInterface $stream)

Read a line including its LF, or the final unterminated line at EOF.

Return an empty string while no complete line is available; check eof() to distinguish this from the end of the body.

Parameters

StreamInterface $stream

Return Value

string

at line 71
static Generator lines(StreamInterface $stream)

Read lines without LF or its preceding CR, preserving an unterminated line.

Parameters

StreamInterface $stream

Return Value

Generator