stream_get_line(3) php man page | unix.com

Man Page: stream_get_line

Operating Environment: php

Section: 3

STREAM_GET_LINE(3)							 1							STREAM_GET_LINE(3)

stream_get_line - Gets line from stream resource up to a given delimiter

SYNOPSIS
string stream_get_line (resource $handle, int $length, [string $ending])
DESCRIPTION
Gets a line from the given handle. Reading ends when $length bytes have been read, when the string specified by $ending is found (which is not included in the return value), or on EOF (whichever comes first). This function is nearly identical to fgets(3) except in that it allows end of line delimiters other than the standard , , and , and does not return the delimiter itself.
PARAMETERS
o $handle - A valid file handle. o $length - The number of bytes to read from the handle. o $ending - An optional string delimiter.
RETURN VALUES
Returns a string of up to $length bytes read from the file pointed to by $handle. If an error occurs, returns FALSE.
SEE ALSO
fread(3), fgets(3), fgetc(3). PHP Documentation Group STREAM_GET_LINE(3)
Related Man Pages
fgets(3c) - opensolaris
fgets(3c) - sunos
fgets(3) - php
fwrite(3) - php
fgetc(3) - php
Similar Topics in the Unix Linux Community
Simple rules of the UNIX.COM forums:
Forum Video Tutorial: How to Use Code Tags
Please Welcome Ravinder Singh to the Moderation Team
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun
Please Welcome Nicki Paul to the Moderator Team!