PHP asXML() Function
PHP SimpleXML Reference Manual
Example
Format the data of a SimpleXML object in XML (version 1.0):
Run Example »
Definition and Usage
The asXML() function formats the data of a SimpleXML object in XML (version 1.0).
Syntax
asXML(
filename
);
| Parameters | Description |
|---|---|
| filename | Optional. Specifies the name of the file to which the data should be written. |
Technical Details
| Return Value: | Returns a string on success or FALSE on failure. If the *filename* parameter is specified, returns TRUE on success and FALSE on failure. |
|---|---|
| PHP Version: | 5.0.1+ |
PHP SimpleXML Reference Manual