Yes, of course you are right about "saving you from all the explode, implode and loops you are using "
But what is a working replacement solution?
I mean I have no problem and would welcome a suggestion code to replace what we are using, as long as gets the Job done as described which again are:
1- Ban words is an array or can be a string of words comma seperated
2- Text to be filtered of bad words can have many lines and many line breaks, so it is not a simple line but a whole document
3- Replace the letters in the Words matching ban words with ** in the middle Chars keeping in place the 1st and last char
4- Text after ran through the Banned words must maintain same exact line break formatting
So what code do you suggest would get this Job done?