function alchemy_xml2array in Alchemy 7
Same name and namespace in other branches
- 6 alchemy.module \alchemy_xml2array()
Utility function to convert xml to a php array.
Parameters
xml string $xmlstr:
1 call to alchemy_xml2array()
- alchemy_get_elements in ./
alchemy.module - @todo Please document this function.
File
- ./
alchemy.module, line 276 - $Id: alchemy.module,v 1.1.2.3 2010/11/17 21:17:48 tomdude48 Exp $
Code
function alchemy_xml2array($xmlstr) {
$xmlarr = new SimpleXMLElement($xmlstr);
return $xmlarr;
}