I only see:
DOMNodeList Object ( )
is this a php bug or something?
How am I supposed to see the HTML elements from the object?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When you create a DOMDocument instance, you have a PHP object. The DOM classes do not implement a helpful
__toStringfunctionality.To get HTML from a DOMDocument instance, you’ll need to use
saveHTML:NB that your question suggests you are actually looking at a collection of elements (a
DOMNodeList) rather than an actual DOMDocument instance. Depending on your code, you’ll need to extract the code for these individually: