public function read($length = null, $offset = null) {
		if (!is_resource($this->_resource)) {
			return false;
		}
		if (!$length) {
			return stream_get_contents($this->_resource);
		}
		return stream_get_contents($this->_resource, $length, $offset);
	}
public function read($length = null, $offset = null) {
		if (!is_resource($this->_resource)) {
			return false;
		}
		if (!$length) {
			return stream_get_contents($this->_resource);
		}
		return stream_get_contents($this->_resource, $length, $offset);
	}
public function read ( $ length = null , $ offset = null ) { if ( ! is_resource ( $ this -> _resource ) ) { return false ; } if ( ! $ length ) { return stream_get_contents ( $ this -> _resource ) ; } return stream_get_contents ( $ this -> _resource , $ length , $ offset ) ; }
Reads data from the stream resource

@param integer $length If specified, will read up to $length bytes from the stream.
If no value is specified, all remaining bytes in the buffer will be read.
@param integer $offset Seek to the specified byte offset before reading.
@return string Returns string read from stream resource on success, false otherwise.
Reads data from the stream resource