array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'dom-htmldocument.savehtmlfile.php', 1 => 'Dom\\HTMLDocument::saveHtmlFile', 2 => 'Serializes the document as an HTML file', ), 'up' => array ( 0 => 'class.dom-htmldocument.php', 1 => 'Dom\\HTMLDocument', ), 'prev' => array ( 0 => 'dom-htmldocument.savehtml.php', 1 => 'Dom\\HTMLDocument::saveHtml', ), 'next' => array ( 0 => 'dom-htmldocument.savexml.php', 1 => 'Dom\\HTMLDocument::saveXml', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/dom/dom/htmldocument/savehtmlfile.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

Dom\HTMLDocument::saveHtmlFile

(PHP 8 >= 8.4.0)

Dom\HTMLDocument::saveHtmlFileSerializes the document as an HTML file

Опис

public Dom\HTMLDocument::saveHtmlFile(string $filename): int|false

Serializes the document as an HTML file.

Параметри

filename
The path to the file to save to.

Значення, що повертаються

The number of bytes written on success, or false on failure.

Помилки/виключення

Прогляньте також