I have to implement a "bad words" filter on my website, which is a classifieds website.
I have a big list of "bad words" but don't know which method is best to compare the user inputs to.
In my case, a textarea inside a form, needs to be checked for "bad words".
<form name="test" action="test.php" method="post">
Inside test.php I fetch the textarea, and need to compare it...
My Q is, would you compare it to an external text-file with bad words, or an array with bad-words?
The array I think is better, so I don't need any external functions etc, but I need to be sure...
What do you think?
Thanks