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

Not really, a db would be slower....

the advantage to a db is ease of storage, ease of use and improved speed for
*larger* scale applications, for an application as simple as the poster is
describing, a db would be fine, but so would a text file.  I don't like
arrays, because then it requires a programmer to add dirty word...

-sterling


-- 
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