Why doesn't var_dump work with DOMDocument objects, while print($dom->saveHTML()) produces output?
var_dump
print($dom->saveHTML())
Update: As of PHP 5.4.1 you can finally var_dump DOM objects. See https://gist.github.com/2499678
It's a bug:
2.1m questions
2.1m answers
60 comments
57.0k users