ball420 Posted June 19, 2007 Share Posted June 19, 2007 i'm not sure how to go about this. any input would be great. thanks Quote Link to comment https://forums.phpfreaks.com/topic/56211-bad-word-filter/ Share on other sites More sharing options...
per1os Posted June 19, 2007 Share Posted June 19, 2007 www.php.net/str_replace www.php.net/preg_replace www.php.net/ereg_replace I am sure if you look in the user comments of each of those you will find something of use <?php $array = array("word1", "word2", "word3"); $string = "You are a big word1 and word2 plus suck my word3"; $new_string = str_replace($array, "****", $string); echo $new_string; ?> Quote Link to comment https://forums.phpfreaks.com/topic/56211-bad-word-filter/#findComment-277642 Share on other sites More sharing options...
ball420 Posted June 19, 2007 Author Share Posted June 19, 2007 i have a guestbook that inserts into a sql database i need anybad words that are reflected on the view gewstbook age t be block or change to somthing please help !!!thanks for the reply's Quote Link to comment https://forums.phpfreaks.com/topic/56211-bad-word-filter/#findComment-277672 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.