How to get the value of "title" using php DOM Document?
so far ive got..PHP Code:<div class='lovers_list'><a href="/laetizia.coronet" class="avatar_tiny tooltip s " title="laetizia.coronet"><img alt="laetizia.coronet" class="avatar" height="24px" src="https://my-secondlife.s3.amazonaws.com/users/laetizia.coronet/tiny_sl_image.png?5d0d6c32c74d8bbe6a606279ef95dee5" width="24px" /></a>
thank youPHP Code:$dom = new DOMDocument;
@$dom->loadHTMLFile('file.html');
$divs=$dom->getElementsByTagName('div');
foreach($divs as $div){
if ($div->getAttribute('class') == "lovers_list") {
}


Reply With Quote

Bookmarks