Re: naughty words / filter

From: Date: Thu, 21 Aug 2003 13:50:00 +0000
Subject: Re: naughty words / filter
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-160299@lists.php.net to get a copy of this message
Was able to get this to filter: ..................... <? } $guestbook = stripslashes($message); $this_is_the_message=$guestbook; $dirty_words = array("badword1","badword2","badword3"); $message = $this_is_the_message; foreach ($dirty_words as $word){ $message = str_replace($word, "****", $message); } echo $message; ?> ................ TR

« previous php.general (#160299) next »