so i had a funct that worked great and now it doesn't seem to work.
i am looking to read in a file of bad words (one per line) and then check a string for each word. if found, i replace the bad word with some *** and we're done.
Has anyone done this code before ? I can do it in perl in 4 lines, I love PHP now and am stuck