Dom\HTMLDocument::saveHtmlFile
(PHP 8 >= 8.4.0)
Dom\HTMLDocument::saveHtmlFile — Serializes the document as an HTML file
Description
Serializes the document as an HTML file.
Parameters
filename- The path to the file to save to.
Return Values
The number of bytes written on success, or false on failure.
Errors/Exceptions
- Throws a ValueError if
filenameis an empty string or contains any null bytes.
See Also
- Dom\HTMLDocument::saveHtml() - Serializes the document as an HTML string
- Dom\HTMLDocument::saveXmlFile() - Serializes the document as an XML file
↑ and ↓ to navigate • Enter to select • Esc to close • / to open