Gen. partnerAlgotech

PHP function stream_get_line()

Gets line from stream resource up to a given delimiter

|
September 11, 2019

Availability in PHP 5.0

Gets line from stream resource up to a given delimiter

Parameters

Parameter Data type Default value Note
$handle resource not A valid file handle.
$length int not The number of bytes to read from the handle.
$ending string null An optional string delimiter.

Return values

string

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

If an error occurs, returns false.

Other resources

Official stream-get-line documentation

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.