-
Couldn't load subscription status.
- Fork 1
Stream: getContents Example
Terry L edited this page Jun 20, 2020
·
2 revisions
Shieldon\Psr7\Stream
Returns the remaining contents in a string
-
return
string
Example:
$stream = new Stream(fopen('php://temp', 'r+'));
$stream->write('Glory to Hong Kong');
echo $stream->getContents();
// Outputs: Glory to Hong Kongcomposer require shieldon/psr-httpShieldon PSR HTTP implementation written by Terry L. from Taiwan.
