Hallo Leute,
ich mühe mich ab mit preg_match_all. Das sah so einfach aus.
Was ist falsch an der Funktion?
function get_rows($data)
{
preg_match_all ("|<tr>\s*(.*)\s*</tr>|U",$data,
$out[],PREG_PATTERN_ORDER);
if (!is_array($out)) return false;
$ret = array();
foreach ($out as $line)
{
$ret[] = $line[1][0];
}
return $ret;
}
Ich will nun nach und nach eine Tabelle auseinandernehmen. Könnt Ihr mir helfen?
Grüße
Tom