Posted by Janwillem Borleffs on 06/05/05 14:10
Richard Quick wrote:
> Could someone please post a standard forbidden word list please?
>
A quick google search brought up this one:
http://outsports.com/nfl/2005/0301nflshopnaughtywords.htm
> People occasionally post banned words on my forum and I'd like to
> replace them with ***s. Is there a standard script for that available
> in PhP?
Have a look at the following functions:
http://www.php.net/str_replace
http://www.php.net/stri_replace
http://www.php.net/preg_replace
Note: For performance, it's recommended to perform replacements prior to
database insertion.
JW
Navigation:
[Reply to this message]
|