Skip to content

Kirby 3.7.5

Xml::simplify()

Breaks a SimpleXMLElement down into a simpler tree structure of arrays and strings

Xml::simplify(SimpleXMLElement $element, bool $collectName = true): array|string

Parameters

Name Type Default Description
$element * SimpleXMLElement
$collectName bool true Whether the element name should be collected (for the root element)

Return type

array|string

Parent class

Kirby\Toolkit\Xml