';
foreach( $html->find('table.results tbody tr') as $i => $tr ) {
$tds = $tr->find('td');
$td_count = 1;
$tr_class = '';
$colspan = '';
if ( count($tds) == 1 ) {
$tr_class = ' class="header"';
$colspan = ' colspan=5';
if ( $first_header == true ) {
$first_header = false;
} else {
echo ' ';
}
$next_is_header = true;
} elseif ( $next_is_header == true ) {
$next_is_header = false;
$tr_class = ' class="bold"';
} elseif ( ( isset($tds[2]) && $tds[2]->plaintext == 'RC Waterland 1' ) || (isset($tds[3]) && $tds[3]->plaintext == 'RC Waterland 1') ) {
$tr_class = ' class="waterland"';
}
echo '';
foreach($tds as $td) {
$content = str_replace (' ', ' ', $td->plaintext);
$content = trim($content);
$td_class = '';
if ( $td_count == 1 ) {
$td_class = ' wide-center';
} elseif ( $td_count == 5 ) {
$td_class = ' center';
}
if ( $td_count != 2 ) {
echo ''.$content.' ';
}
$td_count++;
}
echo ' ';
}
echo '';
?>