trim

function, since version 1.1.5
categories: sanitizing, strings

trim(str)

strip all whitespace characters from the beginning and end of a string

parameters

return type

string

example

'|' + ' hello there ' + '|'
'|' + trim(' hello there ') + '|'

returns

| hello there |
|hello there|

Related functions:

Update your privacy settings