I\'m trying to debug a large and complex DOMDocument object in php. Ideally it\'d be nice if I could get DOMDocument to output in a array-like format.
DoMDocument
for a dom node, just use the following:
print_r(simplexml_import_dom($entry)->asXML());