Xml::simplify()
Breaks a SimpleXMLElement down into a simpler tree structure of arrays and strings
Xml::simplify(SimpleXMLElement $element, bool $collectName = true): array|stringParameters
| Name | Type | Default | Description | 
|---|---|---|---|
| $elementrequired | SimpleXMLElement | no default value | |
| $collectName | bool | true | Whether the element name should be collected (for the root element) | 
Return types
arrayorstring