Like when a user puts in a hundred exclamation points :\
Well, i'm using str_replace like this:
$signature = str_replace("!!", "!", $signature);
Not sure if there's a better way to do this, or if I could do some kind of while loop to have it work?
Anyway, what it does now, is removes one of them each time the form is submitted, unless of course there is only one there. The problem is, It needs to remove all of them except one, and isn't.
Hope this makes sense & that there is a simple solution, i've looked around for str_replace methods, but I haven't come across anything that does this. :\
Edited by tgs, 21 July 2007 - 01:19 PM.
