Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 638 Bytes

func_trim.rst

File metadata and controls

26 lines (16 loc) · 638 Bytes

$trim

Usage: $trim(text[,character])
Category: text

Description:

Trims all leading and trailing whitespaces from text. The optional second parameter character specifies the character to trim. If multiple characters are provided in character, each character will be applied separately to the function.

Examples:

The following statements will return the values indicated:

$trim(  Trimmed  )       ==>  "Trimmed"
$trim(__Trimmed__,_)     ==>  "Trimmed"
$trim(x__Trimmed__y,_x)  ==>  "Trimmed__y"