See also: isEmpty (Check for empty), ifEmpty
The function $trim removes the preceding and following whitespaces (space, tabulator, line break, etc. ) from the transferred text and returns the new text.
Tooltip
Syntax: $trim(text)
Name
Description
textA text whose leading and attached whitespaces are removed.
Returns the passed text stripped of preceding and following whitespaces.
Example: $trim( Jonas Abend ) – returns 'Jonas Abend'
Syntax
$trim(text)
Parameter
Name | Description |
|---|---|
text | A text whose leading and attached whitespaces are removed. |
Return value
Returns the transferred text cleared of leading and following whitespaces.
Example
Syntax | Result |
|---|---|
$trim(Jonas Abend) | 'Jonas Abend' |
$trim( Jonas Abend ) | 'Jonas Abend' |
$trim( Jonas Abend ) | 'Jonas Abend' |
$trim() | empty/null |