Forum Moderators: coopster
$title=$title->item(0)->nodeValue;
But if I want to check whether $title is set I'm given an error saying $title is not a string even though it will echo as a string.
}
echo $title;
Try testing with this...
var_dump( $title );
That will tell you what type of object the title is, as well as all of its contents.