PHP DOM

How to get the value of “title” using php DOM Document?

[php]


laetizia.coronet
[/php]

so far ive got…

[php]$dom = new DOMDocument;

@$dom->loadHTMLFile(‘file.html’);

$divs=$dom->getElementsByTagName(‘div’);

foreach($divs as $div){

if ($div->getAttribute(‘class’) == “lovers_list”)
{

}
[/php]

thank you

Sponsor our Newsletter | Privacy Policy | Terms of Service