PHP Code Bad Swear Words Remove Filter

PHP - HOW to Use PHP Function to Filter and Remove Bad Words Like Swear Words or Stop Words

Home Short:

The code below is simple and effective at detecting and remove almost all possible bad swear words from a string. The giant list of swear and bad words below is actually Googles complete list of profane words. I also included a bunch of other words to detect and remove any references to web addresses or urls.

S
H
A
R
E