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]
- Re: [PHP] CF vs PHP for C... Michael Kimsal
- Re: [PHP] Profanity Filter Egan
- Re: [PHP] Profanity Filter Ignacio Vazquez-Abrams
- RE: [PHP] Profanity Filter DanO
- RE: [PHP] Profanity Filter Ignacio Vazquez-Abrams
- Re: [PHP] Profanity Filter Sterling Hughes
- Re: [PHP] Profanity Filter Stephan Ahonen
- Re: [PHP] Profanity Filter Todd H MacPherson
- Re: [PHP] Profanity Filter Todd H MacPherson
- Re: [PHP] Profanity Filter Website4S
- Re: [PHP] Profanity Filter Website4S
- Re: [PHP] Profanity Filter Ignacio Vazquez-Abrams
- Re: [PHP] Profanity Filter scott
- RE: [PHP] Profanity Filter Tim Ward