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
I just used DOMDocument::save. It's lame that it has to write to a file, but whatever.