<meta http-equiv="Content-Type" content="text/html; charset=windows-1257" />
<?php
include "dom.php";
$html = file_get_html('http://day.lt');
foreach($html->find('.vardadieniai',0)->find('a') as $element){
$vardas = $element->innertext;
if($vardas!='pasveikink')
echo $vardas."<br>";
}
?>