Dann prüfe doch einfach ob in der/den Variable/n $tabelle->blabla Dein Text vorkommt und gebe statt <tr> eben <tr class="highlighted"> aus. Dann noch das CSS dazu und fertig.
PHP-Code:
echo '<table width="100%">';
echo '<tr>';
echo '<th width="10%">Nr.</th>';
echo '<th width="50%">Name</th>';
echo '<th width="10%">Spiele</th>';
echo '<th width="15%">Tore</th>';
echo '<th width="15%">Punkte</th>';
echo '</tr>';
foreach($xml->Platzierung as $tabelle)
{
$pos = strpos($tabelle->Name, 'Hertha BSC');
if($pos !== false) echo '<tr>';
else echo '<tr class="highlighted">';
echo '<td>'.$tabelle->Nr.'</td>';
echo '<td>'.$tabelle->Name.'</td>';
echo '<td>'.$tabelle->Spiele.'</td>';
echo '<td>'.$tabelle->TorePlus.':'.$tabelle->ToreMinus.'</td>';
echo '<td>'.$tabelle->PunktePlus.':'.$tabelle->PunkteMinus.'</td>';
echo '</tr>';
}
echo '</table>';
Lesezeichen