Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<DOMDocument::loadXMLDOMDocument::prepend>
^DOMDocumentLast updated: Mon, 26 Oct 2026

DOMDocument::normalizeDocument

(PHP 5, PHP 7, PHP 8)

DOMDocument::normalizeDocument — Normalizes the document

Description

public function DOMDocument::normalizeDocument(): void

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

Parameters

This function has no parameters.

Return Values

No value is returned.

See Also


<DOMDocument::loadXMLDOMDocument::prepend>
^DOMDocumentLast updated: Mon, 26 Oct 2026