This tests a textarea input agains bad words...
$bad_words = array('bad', 'words')
foreach( $bad_words as $bad ){
if( stristr($posted, $bad) !== FALSE )
{
$contains_bad_words = TRUE;
}
}
Now is there any way to make this match 'bad', 'BAD', 'Bad', 'BaD' etc without having to write it into the array in all different cases (Large letters, small letters)?
Thanks