-
Notifications
You must be signed in to change notification settings - Fork 1
Stream: isSeekable Example
Terry L edited this page Jun 20, 2020
·
2 revisions
Shieldon\Psr7\Stream
Seek to a position in the stream.
-
return
bool
Example:
$resource = fopen(BOOTSTRAP_DIR . '/sample/shieldon_logo.png', 'r+');
$stream = new \Shieldon\Psr7\Stream($resource);
if ($stream->isSeekable()) {
echo 'File is seekable';
}
// Outputs: File is seekable
composer require shieldon/psr-http
Shieldon PSR HTTP implementation written by Terry L. from Taiwan.