original_string: public function outputWithHeaders($filename='worksheet')
      {
          $filename = preg_replace('/[^aA-zZ0-9\_\-]/', '', $filename);
  
          header("Content-Type: application/msexcel; charset=" . $this->encoding);
          header("Content-Disposition: inline; filename=\"" . $filename . ".xlsx\"");
          echo $this->__toString();
      }
code: public function outputWithHeaders($filename='worksheet')
      {
          $filename = preg_replace('/[^aA-zZ0-9\_\-]/', '', $filename);
  
          header("Content-Type: application/msexcel; charset=" . $this->encoding);
          header("Content-Disposition: inline; filename=\"" . $filename . ".xlsx\"");
          echo $this->__toString();
      }
code_tokens: public function outputWithHeaders ( $ filename = 'worksheet' ) { $ filename = preg_replace ( '/[^aA-zZ0-9\_\-]/' , '' , $ filename ) ; header ( "Content-Type: application/msexcel; charset=" . $ this -> encoding ) ; header ( "Content-Disposition: inline; filename=\"" . $ filename . ".xlsx\"" ) ; echo $ this -> __toString ( ) ; }
docstring: Used to generate the xml with output headers
  @param string $filename Name of excel file to generate (...xls) default worksheet.xls
docstring_tokens: Used to generate the xml with output headers