Symfony\Component\DependencyInjection\Loader\XmlFileLoader::convertDomElementToArray
Converts a \DomElement object to a PHP array.
The following rules applies during the conversion: * Each tag is converted to a key value or an array if there is more than one "value" * The content of a tag is set under a "value" key (<foo>bar</foo>) if the tag also has some nested tags * The attributes are converted to keys (<foo foo="bar"/>) * The nested-tags are converted to keys (<foo><foo>bar</foo></foo>)
Signature
public function convertDomElementToArray(DomElement
$element )
Parameters
$element
— \DomElement- A \DomElement instance
Returns
- array
- A PHP array