DOMDocument::save

DOMDocument::save

(PHP 5, PHP 7)

DOMDocument::save Dumps the internal XML tree back into a file

Description

public int DOMDocument::save ( string $filename [, int $options ] )

Creates an XML document from the DOM representation. This function is usually called after building a new dom document from scratch as in the example below.

Parameters

filename

The path to the saved XML document.

options