public function stream() { $fp = fopen("php://memory", 'r+'); fwrite($fp, $this->_string); rewind($fp); return $fp; }