Stream extends Stream
FinalYes
Table of Contents
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
- setReadPortionCallback() : void
- tell() : int
- write() : int
Methods
__construct()
public
__construct(string|resource|Stream $stream[, string $mode = 'r' ]) : mixed
Parameters
- $stream : string|resource|Stream
- $mode : string = 'r'
Tags
__toString()
public
__toString() : string
Tags
Return values
stringclose()
public
close() : void
Tags
copyTo()
public
copyTo(mixed $stream) : mixed
Parameters
- $stream : mixed
detach()
public
detach() : mixed
Tags
eof()
public
eof() : bool
Tags
Return values
boolgetContents()
public
getContents() : string
Tags
Return values
stringgetMetadata()
public
getMetadata([string|null $key = null ]) : mixed
Parameters
- $key : string|null = null
Tags
getSize()
public
getSize() : int|null
Tags
Return values
int|nullisReadable()
public
isReadable() : bool
Tags
Return values
boolisSeekable()
public
isSeekable() : bool
Tags
Return values
boolisWritable()
public
isWritable() : bool
Tags
Return values
boolread()
public
read(int $length) : string
Parameters
- $length : int
Tags
Return values
stringrewind()
public
rewind() : void
Tags
seek()
public
seek(int $offset[, int $whence = SEEK_SET ]) : void
Parameters
- $offset : int
- $whence : int = SEEK_SET
Tags
setReadPortionCallback()
public
setReadPortionCallback(callable $callback) : void
Parameters
- $callback : callable
tell()
public
tell() : int
Tags
Return values
intwrite()
public
write(string $string) : int
Parameters
- $string : string