Re: [PHP] Re: Replacing with f*ck and f*cking

2008-10-27 Thread Ryan S
Thanks for all your input guys! > Scunthorpe LOL! Never heard of the place but ...f**k i think i am a geek for finding it funny! Reminds me of quite few people tho... Cheers! R 2008/10/26 Colin Guthrie <[EMAIL PROTECTED]>: > Ashley Sheridan wrote: >> >> What you really need to watch out for is

Re: [PHP] Re: Replacing with f*ck and f*cking

2008-10-26 Thread Dotan Cohen
2008/10/26 Colin Guthrie <[EMAIL PROTECTED]>: > Ashley Sheridan wrote: >> >> What you really need to watch out for is words which you're going to >> censor which might be part of other names. Sex is an obvious one, as it >> appeared in the borough name of my old address: Middlesex. > > I can't beli

Re: [PHP] Re: Replacing with f*ck and f*cking

2008-10-26 Thread Ashley Sheridan
On Sun, 2008-10-26 at 11:06 +, Colin Guthrie wrote: > Ashley Sheridan wrote: > > What you really need to watch out for is words which you're going to > > censor which might be part of other names. Sex is an obvious one, as it > > appeared in the borough name of my old address: Middlesex. > > I

[PHP] Re: Replacing with f*ck and f*cking

2008-10-26 Thread Colin Guthrie
Ashley Sheridan wrote: What you really need to watch out for is words which you're going to censor which might be part of other names. Sex is an obvious one, as it appeared in the borough name of my old address: Middlesex. I can't believe you didn't use the infamous "Scunthorpe" as your example

[PHP] Re: Replacing with f*ck and f*cking

2008-10-26 Thread Maciek Sokolewicz
Ryan S wrote: Hey! I'm just trying to replace some of the more bad words with their slightly censored counterparts like so $bad_words = array(/*Well you know the words so am not going to write them here*/); $bad_words_replacements = array("f*ck", "f*cking"); $comment = str_replace("$bad_words"