Property | Type | Description | |
---|---|---|---|
$length | integer | Cached length of the string | |
$position | integer | Current position inside the string | |
$string | string | String, wrapped by the stream |
Method | Description | |
---|---|---|
stream_eof ( ) : boolean | Has the stream reached its end? | |
stream_open ( string $path, string $mode, mixed $options, mixed &$opened_path ) : boolean | Open stream | |
stream_read ( integer $count ) : string | Read from stream | |
stream_seek ( integer $offset, integer $whence ) : boolean | Seek to a defined position in the string | |
stream_stat ( ) : void | Returns information about the stream | |
stream_tell ( ) : integer | Tell current stream position | |
stream_write ( string $data ) : integer | Write to stream |
public stream_eof ( ) : boolean | ||
return | boolean |
public stream_read ( integer $count ) : string | ||
$count | integer | |
return | string |
public stream_stat ( ) : void | ||
return | void |
public stream_tell ( ) : integer | ||
return | integer |
public stream_write ( string $data ) : integer | ||
$data | string | |
return | integer |
protected int $position | ||
return | integer |