Mailinglisten-Archive |
Moin Dario,
vielleicht hilfts
$_t = template("_TEXT_MIT JAHRESZAHLEN__");
preg_match_all ("/(\d){3,4}/s", $_t, $matches);
for ($ax=0;$ax<count($matches[0]);$ax++) {
echo $matches[0][$ax]."<br>";
$_rx = "<font color=red>".$matches[0][$ax]."</font>";
$_px = "/(".$matches[0][$ax].")/";
$_t = preg_replace ($_px,$_rx,$_t);
}
echo nl2br($_t);
Gruss *Joern*
php::bar PHP Wiki - Listenarchive