DOMDocument->save() --
Dumps the internal XML tree back into a file
Описание
class DOMDocument {
mixed save ( string filename [, integer 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.