Login +

Reference Guide / SLS_XMLToArray

SLS_XMLToArray1 is a class for XML=> Array casting.


At Controller level, you can access it directly by instantiating the class:

$xmlToArray = new SLS_XMLToArray($xml);

Function createArray

The createArray() function creates an Array from XML stream passed as a parameter of the constructor.



  1. SLS_XMLToArray - Tool SLS_XMLToArray - A class to convert XML to array in PHPIt returns the array which can be converted back to XML using the Array2XML scriptIt takes an XML string or a DOMDocument object as an input.