Usage
Syntax: str.trim()
Returns a trimmed string.
Explanation
Removes spaces from the front and the back of a string.
Example
function onCreated() { temp.string = " Hello World! "; echo(temp.string.trim()); }
... Will output "Hello World!" and not " Hello World! " in RC when on the serverside, or in your F2 menu when on the clientside.
Categories
CategoryObjectFunction
CategoryFunctionClientside
CategoryFunctionServerside
There are no comments on this page. [Add comment]