|
PHP5中文手册
DOMDocument->save()(No version information available, might be only in CVS) DOMDocument->save() — Dumps the internal XML tree back into a file 说明DOMDocument
mixed 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. 参数
返回值Returns the number of bytes written or FALSE if an error occurred. 更新日志
范例
Example#1 Saving a DOM tree into a file
<?php |