Ja Genau, hab es so gemacht:
$daten = new DOMDocument();
$daten->loadHTML($string);
$seite = $daten->getElementsByTagName('div');
foreach ($seite as $inhalt) {
if ($inhalt->getAttribute('class') == "content") {
$zeilen = $inhalt->getElementsByTagName('tr');
foreach ($zeilen as $zeile) {
$felder = $zeile->getElementsByTagName('th');
foreach ($felder as $feld) {
$schluessel[] = $feld->nodeValue;
}
$felder = $zeile->getElementsByTagName('td');
$nr = 0;
foreach ($felder as $feld) {
$zelle = $feld->nodeValue;
if (empty($zelle)) {
$zelle = $feld->firstChild->getAttribute('src');
}
$wert[$schluessel[$nr++]] = $zelle;
}
$werte[] = $wert;
}
$werte[0] = $inhalt->getElementsByTagName('img')->item(0)->getAttribute('src');
}
}
print_r($werte);