Méthode |
Description |
|
close ( ) : boolean |
Closes the stream |
|
encoding ( string $charset ) : boolean |
Sets the character set for stream encoding if possible. The stream_encoding
function is not guaranteed to be available as it is seems as if it's experimental
or just not officially documented. If the function is not available returns false. |
|
eof ( ) : boolean |
Determines if the socket resource is at EOF. |
|
open ( array $options = [] ) : mixed |
Opens a socket and initializes the internal resource handle. |
|
read ( integer $length = null, integer $offset = null ) : string |
Reads data from the stream resource |
|
timeout ( integer $time ) : boolean |
Set timeout period on a stream. |
|
write ( string $data = null ) : mixed |
writes data to the stream resource |
|