stream_get_line
stream_get_line
Gets line from stream resource up to a given delimiter
**stream_get_line** resource $stream int $length string $ending
Gets a line from the given handle.
Reading ends when bytes have been read, when
the non-empty string specified by is found (which is
included in the return value), or on
(whichever comes first).
length``endingnot
This function is nearly identical to except in
that it allows end of line delimiters other than the standard \n, \r, and
\r\n, and does return the delimiter itself.
fgetsnot
streamA valid file handle.
length
The maximum number of bytes to read from the handle.
Negative values are not supported.
Zero () means the default socket chunk size,
i.e. bytes.
0``8192
endingAn optional string delimiter.
Returns a string of up to bytes read from the file
pointed to by ,return.falseforfailure.
length``stream
fread``fgets``fgetc