public function stream_read($length) { $data = substr(self::$content, $this->read, $length); $this->read += $length; return $data; }