Page 1 of 1

trim() for removing trailing white spaces

Posted: Tue Jan 02, 2007 11:56 am
by tekproxy
What about adding trim()-like method for strings for removing trailing white spaces? It wouldn't be hard to do with code but if it needed to be done several hundred times a core function would be faster.

Is there something that already does this? I've looked around but I can't find anything.

[edit]
RemoveSpaces() in string.inc does this.
[/edit]