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.
 };
  >>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to