(PHP 8 >= 8.4.0)
Dom\HTMLDocument::saveHtmlFile — Serializes the document as an HTML file
Serializes the document as an HTML file.
filenameThe 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.