The $outputRoot determines whether or not the php array will have a @root key. Default is false.
xml_to_array($xml, $outputRoot = false)
Arguments are identical to XmlToArray::convert method.
XML has always been a challenge to work with in PHP compared to other data formats, such as JSON. This package aims to make integrating with XML files or api requests significantly easier. With this package, you might actually like interfacing with XML in your application now.