Menu Samaritan's Purse

STREAM_GET_LINE

Gets line from stream resource up to a given delimiter

SYNTAX

stream_get_line ( resource $handle , int $length [, string $ending ] ) : string

PARAMETERS

handle

A valid file handle.

length

The number of bytes to read from the handle.

ending

An optional string delimiter.

RETURN

Returns a string of up to length bytes read from the file pointed to by handle.

If an error occurs, returns FALSE.

EXAMPLES

HANDLE LENGTH

<!doctype html>

ENDING

<!doctype html>

PHP