Core Function Trim
From Sputnik Wiki
(Difference between revisions)
UberFoX (Talk | contribs)
(Created page with "<pre> Trim( <expression>, <chars> ) </pre> === Description === Removes whitespace from the beginning and end of a string. === Parameters === ==== expression ==== The string ...")
Newer edit →
(Created page with "<pre> Trim( <expression>, <chars> ) </pre> === Description === Removes whitespace from the beginning and end of a string. === Parameters === ==== expression ==== The string ...")
Newer edit →
Revision as of 19:24, 1 December 2011
Trim( <expression>, <chars> )
Contents |
Description
Removes whitespace from the beginning and end of a string.
Parameters
expression
The string to use.
chars
Optional; A string containing chars to be removed.
Return Value
Success: Returns 1.
Failure: Returns 0.
Remarks
None.
Example
$str = " The quick brown fox "; MsgBox( "'" . Trim($str) . "'" );