function alchemy_xml2array in Alchemy 6
Same name and namespace in other branches
- 7 alchemy.module \alchemy_xml2array()
Utility function to convert xml to a php array
Parameters
xml string $xmlstr:
1 call to alchemy_xml2array()
File
- ./
alchemy.module, line 226 - DO NOT COMMIT TO DRUPAL CONTRIB! THIS MODULE IS FOR DEVELOPMENT ONLY.
Code
function alchemy_xml2array($xmlstr) {
$xmlarr = new SimpleXMLElement($xmlstr);
return $xmlarr;
}