Convert the data to a XML stream. Strings contained in the data array may
only be provided as UTF-8 data.
public save ( array $object, array $options = [] ) : string | ||
$object | array | The data array representing the object. |
$options | array | Additional options when writing the XML.
- previous: The previous XML text (default: empty string) - relaxed: Relaxed error checking (default: false) |
return | string | The data as an XML string. |