[DGD] Remove strings from strings
Risto Karjalainen
risto.karjalainen at pp1.inet.fi
Mon Dec 3 09:39:32 CET 2001
> I have a rather longs string and I need to remove an occurence of say
'Test'
> from it ... however, I don't know the position of it.
>
> How can I go about remove 'Test' from the string?
First of all, I think I just accidentally sent an empty message due to my
fidgety fingers. Sorry.
Another solution for your problem would be:
implode(explode(String1, "Test"), "");
This removes ALL instances of "Test", whereas the sscanf version removes
only one.
Regards,
Risto Karjalainen
_________________________________________________________________
List config page: http://list.imaginary.com/mailman/listinfo/dgd
More information about the DGD
mailing list