PHP 8.5.0 Beta 2 available for testing

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.

エラー / 例外

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

参考

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top