Dom\HTMLDocument::saveHtmlFile
PHP Manual
PHP Manual»Dom\HTMLDocument»Dom\HTMLDocument::saveHtmlFile

Dom\HTMLDocument::saveHtmlFile

(PHP 8 >= 8.4.0)

Dom\HTMLDocument::saveHtmlFile — Serializes the document as an HTML file

Опис

public function 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.

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

  • Throws a ValueError if filename is an empty string or contains any null bytes.

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

To Top