Replace Bad word in array php

Yes, I gathered that.
Using str_ireplace you would not need all the variations of capitals and lower case, which would slim down your code. You would just need an array of words (regardless of case) and another of replacements.

$find = array('feck', 'suck', 'follow');
$replace = array('f**k', 's**k', 'fo**ow');
$clean = str_ireplace($find, $replace, $string);

Or there are tools to help with this task.

If you see the thread that comes from, there can be other complications to this.