I need a function that takes a string as XML input and change that into an array. Example:
<a>
<b>
<c></c>
</b>
</a>
So I can read it in PHP like this:
$array = xml2array($xmlcode);
echo $array['a']['b']['c'];
Note: I tried all xml2array functions in PHP's documentation on xml_parse, and they all didn't work or had problems.