RE: [PHP] Profanity Filter
| From: | Ignacio Vazquez-Abrams | Date: | Fri, 19 Jan 2001 19:30:29 +0000 |
| Subject: | RE: [PHP] Profanity Filter | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-35699@lists.php.net to get a copy of this message | ||
On Fri, 19 Jan 2001, DanO wrote:
>
> why use a DB?
>
> just create an array of dirty words then loop your input thru it with a
> regex.
>
> DanO
>
Because a DB would probably be faster than creating an array and looping
through it with a regex.
--
Ignacio Vazquez-Abrams <ignacio@openservices.net>