public function saveHTMLFile($filename)
    {
        if (!is_writable($filename)) {
            return false;
        }
        $result = $this->saveHTML();
        file_put_contents($filename, $result);
        $bytesWritten = filesize($filename);
        if ($bytesWritten === strlen($result)) {
            return $bytesWritten;
        }
        return false;
    }
public function saveHTMLFile($filename)
    {
        if (!is_writable($filename)) {
            return false;
        }
        $result = $this->saveHTML();
        file_put_contents($filename, $result);
        $bytesWritten = filesize($filename);
        if ($bytesWritten === strlen($result)) {
            return $bytesWritten;
        }
        return false;
    }
public function saveHTMLFile ( $ filename ) { if ( ! is_writable ( $ filename ) ) { return false ; } $ result = $ this -> saveHTML ( ) ; file_put_contents ( $ filename , $ result ) ; $ bytesWritten = filesize ( $ filename ) ; if ( $ bytesWritten === strlen ( $ result ) ) { return $ bytesWritten ; } return false ; }
Dumps the internal document into a file using HTML formatting.

@param string $filename The path to the saved HTML document.
@return int the number of bytes written or FALSE if an error occurred.
Dumps the internal document into a file using HTML formatting .