PHP 8.4.3 Released!

Dom\HTMLDocument::saveHtml

(PHP 8 >= 8.4.0)

Dom\HTMLDocument::saveHtmlSerializes the document as an HTML string

Опис

public Dom\HTMLDocument::saveHtml(?Dom\Node $node = null): string

Serializes the document as an HTML string.

Параметри

node
The node to serialize. If not provided, the entire document is serialized.

Значення, що повертаються

The serialized HTML document string in the current document encoding.

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

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

add a note

User Contributed Notes

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