RE: [PHP] word filter

2001-10-01 Thread Richard Heyes
There's a better way to do this: ? $naughty_words = array( 'poop', 'bum', 'religion' ); echo in_array($text, $naughty_words) ? found bad words! : text is clean!; ? This won't work, since you're trying to find the whole of $text in the array $naughty_words. -- Richard

Re: [PHP] word filter

2001-10-01 Thread _lallous
-Original Message- From: Maxim Maletsky (PHPBeginner.com) [mailto:[EMAIL PROTECTED]] Sent: lunedì 1 ottobre 2001 10.33 To: '_lallous'; [EMAIL PROTECTED] Cc: 'Kristjan Kanarik'; 'Richard Heyes' Subject: RE: [PHP] word filter There's a better way to do this: ? $naughty_words = array