Gen. partnerAlgotech

PHP function stream_get_contents()

Reads remainder of a stream into a string

|
September 11, 2019

Availability in PHP 5.0

Reads remainder of a stream into a string

Parameters

Parameter Data type Default value Note
$handle resource not A stream resource (e.g. returned from fopen)
$maxlength int null, The maximum bytes to read. Defaults to -1 (read all the remaining buffer).
$offset int null Seek to the specified offset before reading.

Return values

string

|bool a string or false on failure.

Other resources

Official documentation for stream-get-contents

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.