Return a well-formed XML string (XML version 1.0) from a SimpleXML object:
The asXML() function returns a well-formed XML string (XML version 1.0) from a SimpleXML object.
Parameter | Description |
---|---|
filename | Optional. If specified, the function writes the data to the file, instead of returning the string |
Return Value: | Returns a string on success. FALSE on failure. If the filename parameter is specified, it returns TRUE on success, FALSE on failure |
---|---|
PHP Version: | 5.0.1+ |