hallo habe mir einen Filter gebaut leider ignoriert er ß
die badwords kommen aus der datenbank zb so "scheiß,mist,fuckyou,scheiss,ß " alles funzt nur das mit ß nicht
PHP:
function filterbadwords($bad, $text)
{
// The bad words, separated by a comma
$badwords = $bad;
$badwordsarray = explode (',', $badwords);
foreach($badwordsarray as $badword)
{
$text = str_ireplace($badword, str_repeat("*", strlen($badword)), $text);
}
return($text);
}
die badwords kommen aus der datenbank zb so "scheiß,mist,fuckyou,scheiss,ß " alles funzt nur das mit ß nicht