i'm saying that Khaled shouldn't have to waste his time coding something for whining people who can't take a few swear words without being offended.

Besides, the solution is easily codable, and any ways of getting round that code will be exactly the same as an inbuilt filter.

if (($istok($1-,swearword1,32)) == $true) || ($istok($1-,swearword2,32) == $true)) {
or you could use a loop to loop thru lines in a text file containing the swear words.