Re: Profanity Filter
| From: | Website4S at aol dot com | Date: | Sat, 20 Jan 2001 16:52:43 +0000 |
| Subject: | Re: Profanity Filter | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-35809@lists.php.net to get a copy of this message | ||
Hi,
I`m trying to use the code below for my profanity checker but it keeps
returning a parse error on the second line 'while ((list etc'
Can anyone see anything wrong??
TIA
Ade
<< $done=false;
while ((list($key, $val)=each($words)) and $done===false)
{
$done=strpos(strtolower($name), $val);
};
if ($done!==false)
{
// Oops! Bad name.
}
else
{
// Okay, valid name.
};
>>