Hallo Thomas,
Nimm str_ireplace() statt str_replace().
Es waere nett gewesen, im gleichen Atemzug zu erwaehnen,
dass diese tolle Funktion erst in PHP 5 zur Verfuegung stehen wird...
Echt? Das wusste ich nicht...
Ok, dann wäre wohl ein
$text = preg_replace ('/'.preg_quote ($key, '/').'/i', $value, $text);
besser...
Viele Grüße,
Christian