I have a DomDocument
, which is impossible to var_dump
(it really makes me angry) on which I do :
var_dump($dom->getElementsByTagName('url'));
on a response like this :
<?xml version="1.0" ?>
<rss version="2.0">
<channel>
<url>beaute-mode/cheveux/11460--choisir-un-headband</url>
<title>get_url_article</title>
<host>myhost</host>
</channel>
</rss>
But I got the var_dump
echoing : object(DOMNodeList)[262]
instead of my raw data (which is an URL).
So my question is pretty simple but how do I get my raw data without being encapsulated in an DomNodeList
?
thanks.