Easy Tutorial
❮ Func Date Sunrise Func Array Intersect ❯

PHP asXML() Function

PHP SimpleXML Reference Manual

Example

Format the data of a SimpleXML object in XML (version 1.0):


Definition and Usage

The asXML() function formats the data of a SimpleXML object in XML (version 1.0).


Syntax

Parameter Description
filename Optional. Specifies the name of the file to write the data to.

Technical Details

Return Value: Returns a string if successful, or FALSE on failure. If the filename parameter is specified, returns TRUE on success, or FALSE on failure.
PHP Version: 5.0.1+
--- ---
❮ Func Date Sunrise Func Array Intersect ❯