php8.5
Home/ Manual/ dom / domdocument/ DOMDocument::normalizeDocument

DOMDocument::normalizeDocument

PHP function Edit on GitHub ✎

(PHP 5, PHP 7, PHP 8)

Normalizes the document

Description

DOMDocument::normalizeDocument(): void

This method acts as if you saved and then loaded the document, putting the document in a "normal" form.

Parameters Parameters

Return Values

Void

See Also

  • The DOM Specification
  • DOMNode::normalize

Source: reference/dom/domdocument/normalizedocument.xml · from the official PHP manual (php/doc-en)