StreamString
class StreamString
String Stream Wrapper
This class allows you to use a PHP string in the same way that you would normally use a regular stream wrapper
Methods
boolean
stream_open(
string $path,
string $mode,
integer $options,
string $opened_path)
Method to open a file or URL.
array
stream_stat()
Method to retrieve information from a file resource
array
url_stat(
string $path,
integer $flags)
Method to retrieve information about a file.
void
stream_read(
integer $count)
Method to read a given number of bytes starting at the current position and moving to the end of the string defined by the current position plus the given number.
boolean
stream_write(
string $data)
Stream write, always returning false.
integer
stream_tell()
Method to get the current position
boolean
stream_eof()
End of field check
boolean
stream_seek(
integer $offset,
integer $whence)
Stream offset
boolean
stream_flush()
Stream flush, always returns true.
Details
boolean
stream_open(
string $path,
string $mode,
integer $options,
string $opened_path)
Method to open a file or URL.