Dom\HTMLDocument::saveHtmlFile

(PHP 8 >= 8.4.0)

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

Descrizione

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

Serializes the document as an HTML file.

Elenco dei parametri

filename
The path to the file to save to.

Valori restituiti

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

Errori/Eccezioni

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

Vedere anche: