Why doesn't var_dump work with DomDocument objects, while print($dom->saveHTML()) does?

前端 未结 2 1317
孤独总比滥情好
孤独总比滥情好 2020-11-27 21:54

Why doesn\'t var_dump work with DomDocument objects, while print($dom->saveHTML()) produces output?

2条回答
  •  遥遥无期
    2020-11-27 22:06

    Update: As of PHP 5.4.1 you can finally var_dump DOM objects. See https://gist.github.com/2499678


    It's a bug:

    • http://bugs.php.net/bug.php?id=48527

提交回复
热议问题