I need to know how I can check a value against an array of words to filter out bad words..
I think it would be something like this:
$array = ("sex","screw","beat","root");
if(!eregi("DO SOMETHING", $word)) {
echo "bad or restricted word was found!";
}
can someone help me with this