Stream
implements
StreamInterface
Table of Contents
Interfaces
- StreamInterface
Methods
-
__construct()
: mixed
-
__toString()
: string
-
close()
: void
-
copyTo()
: mixed
-
detach()
: mixed
-
eof()
: bool
-
getContents()
: string
-
getMetadata()
: mixed
-
getSize()
: int|null
-
isReadable()
: bool
-
isSeekable()
: bool
-
isWritable()
: bool
-
read()
: string
-
rewind()
: void
-
seek()
: void
-
tell()
: int
-
write()
: int
__construct()
public
__construct(string|resource|Stream $stream[, string $mode = 'r' ]) : mixed
Parameters
-
$stream
: string|resource|Stream
-
-
$mode
: string
= 'r'
-
-
throws
-
ArgumentException
__toString()
public
__toString() : string
-
inheritdoc
-
close()
public
close() : void
-
inheritdoc
-
copyTo()
public
copyTo(mixed $stream) : mixed
Parameters
-
$stream
: mixed
-
detach()
public
detach() : mixed
-
inheritdoc
-
eof()
public
eof() : bool
-
inheritdoc
-
getContents()
public
getContents() : string
-
inheritdoc
-
public
getMetadata([string|null $key = null ]) : mixed
Parameters
-
$key
: string|null
= null
-
-
inheritdoc
-
getSize()
public
getSize() : int|null
-
inheritdoc
-
isReadable()
public
isReadable() : bool
-
inheritdoc
-
isSeekable()
public
isSeekable() : bool
-
inheritdoc
-
isWritable()
public
isWritable() : bool
-
inheritdoc
-
read()
public
read(int $length) : string
Parameters
-
$length
: int
-
-
inheritdoc
-
rewind()
public
rewind() : void
-
inheritdoc
-
seek()
public
seek(int $offset[, int $whence = SEEK_SET ]) : void
Parameters
-
$offset
: int
-
-
$whence
: int
= SEEK_SET
-
-
inheritdoc
-
tell()
public
tell() : int
-
inheritdoc
-
write()
public
write(string $string) : int
Parameters
-
$string
: string
-
-
inheritdoc
-