Ejemplo n.º 1
0
 /**
  * Static entry point
  * @param string $input
  * @param bool $simpleStructure
  * @param int $maxDepth only parse XML to the provided depth
  * @return array
  * @throws XmlToArrayException
  */
 public static function render($input, $simpleStructure = false, $maxDepth = 20)
 {
     $Instance = new XmlToArray($input, $maxDepth);
     return $Instance->toArray($simpleStructure);
 }