I have the following function to filter bad words:
I call the function with :
And php show the following output :
I need to see this output :
"dog" has 3 charachter. I need to show 3 asterisk.. If another bad word has 7 charachters, an example: "bastarduser" and I filter "bastard" I need to see :
7 asterisk.
What I need to do to solve this problem ?
Thanks !